Assembler code
.text:00011A10
.text:00011A10 ; =============== S U B R O U T I N E =======================================
.text:00011A10
.text:00011A10
.text:00011A10 sub_11A10: ; DATA XREF: sub_11A88+20↓o
.text:00011A10 ; sub_11A88:off_11B2C↓o ...
.text:00011A10 mov.l r8, @-r15
.text:00011A12 sts.l pr, @-r15
.text:00011A14 add #-h'10, r15
.text:00011A16 mov.l #h'C350, r1
.text:00011A18 add r1, r4
.text:00011A1A mov r4, r8
.text:00011A1C
.text:00011A1C loc_11A1C: ; CODE XREF: sub_11A10+24↓j
.text:00011A1C mov.l #_WaitForSingleObject, r0
.text:00011A1E mov r8, r5
.text:00011A20 mov.l #unk_1512C, r1
.text:00011A22 jsr @r0 ; _WaitForSingleObject
.text:00011A24 mov.l @r1, r4
.text:00011A26 mov r0, r4
.text:00011A28 mov.w #h'102, r1
.text:00011A2A cmp/eq r1, r4
.text:00011A2C bt loc_11A36
.text:00011A2E mov.l #unk_1513C, r1
.text:00011A30 mov.l @r1, r1
.text:00011A32 tst r1, r1
.text:00011A34 bf loc_11A1C
.text:00011A36
.text:00011A36 loc_11A36: ; CODE XREF: sub_11A10+1C↑j
.text:00011A36 mov.l #_EnterCriticalSection, r0
.text:00011A38 mov.l #unk_176A8, r4
.text:00011A3A jsr @r0 ; _EnterCriticalSection
.text:00011A3C nop
.text:00011A3E mov.l #unk_1513C, r1
.text:00011A40 mov.l @r1, r1