Function at 0x4405d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
mov eax, dword [0xd09e10]
push edi
je 0x4407d2
cmp eax, ebp
jne 0x4409a4
cmp dword [0x8c3efc], ebp
je 0x440602
call fcn.00476010
mov dword [0x8c3efc], ebp
cmp dword [0x8c3f00], ebp
je 0x440629
cmp dword [0x8ee648], ebp
je 0x44061a
mov eax, dword [0xd09dfc]
push eax
jmp 0x44061b
push ebp
call fcn.00474fb0
add esp, 4
mov dword [0x8c3f00], ebp
cmp dword [0x8c3ef0], ebp
je 0x44063c
call fcn.004767d0
mov dword [0x8c3ef0], ebp
cmp dword [0x8c3ef4], ebp
je 0x44064a
mov dword [0x8c3ef4], ebp
cmp dword [0x8c3ef8], ebp
je 0x44068d
cmp dword [0xd0a7b0], ebp
je 0x440668
mov ecx, dword [0x8ee644]
push ecx
push 0xd0a7b0
jmp 0x440681
mov eax, dword [0x4c2348]
cmp eax, 0xffffffff
je 0x440687
mov edx, dword [0x8ee644]
mov eax, dword [eax*4 + 0x8ee64c]
push edx
push eax
call dword [sym.imp.WINMM.dll_sndPlaySoundA]
mov dword [0x8c3ef8], ebp
cmp dword [0xd0ad6c], ebp
mov ebx, 1
je 0x4406eb
xor esi, esi
cmp dword [esi + 0x8c3ae0], ebp
je 0x4406e0
mov eax, dword [esi + 0x8c31b8]
test bl, al
je 0x4406e0
test al, 4
mov dword [esi + 0x8c3ae0], ebp
je 0x4406c9
mov ecx, dword [esi + 0x8c35cc]
mov edx, dword [esi + 0x8c4328]
push ebx
push ecx
push edx
jmp 0x4406d8
mov eax, dword [esi + 0x8c35cc]
mov ecx, dword [esi + 0x8c4328]
push ebp
push eax
push ecx
call fcn.004051e0
add esp, 0xc
add esi, 4
cmp esi, 0x404
jl 0x44069c
cmp dword [0x8c3f04], ebp
je 0x4407a1
cmp dword [0x4c23b0], ebp
je 0x440776
mov ebp, 0x4f552c
mov edi, 0x4f3ed4
mov esi, 0x4f1940
cmp dword [esi], 0
je 0x440725
lea edx, [esi - 0x10]
push edx
call fcn.0040ac80
add esp, 4
mov dword [esi], 0
cmp dword [edi], 0
je 0x44073c
lea eax, [edi - 0x14]
push eax
call fcn.0040bc90
add esp, 4
mov dword [edi], 0
cmp dword [ebp], 0
je 0x440758
lea ecx, [ebp - 0xec]
push ecx
call fcn.0040c790
add esp, 4
mov dword [ebp], 0
add esi, 0x134
add edi, 0x158
add ebp, 0x220
cmp esi, 0x4f2c80
jl 0x44070e
xor ebp, ebp
jmp 0x44079b
mov esi, 0x4f2c90
cmp dword [esi], ebp
je 0x44078d
lea edx, [esi - 0x18]
push edx
call fcn.0040b8d0
add esp, 4
mov dword [esi], ebp
add esi, 0x124
cmp esi, 0x4f3ed0
jl 0x44077b
mov dword [0x8c3f04], ebp
call fcn.004014c0
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, 0x8e3b18
mov eax, dword [esi - 0x10]
cmp eax, ebp
je 0x4407c2
cmp dword [esi], 2
jne 0x4407c2
push eax
call edi
mov dword [esi], ebx
add esi, 0x18
cmp esi, 0x8e9908
jl 0x4407b1
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, ebp
jne 0x4409a4
cmp dword [0xd09e78], ebp
mov ebx, 1
je 0x4407f2
call fcn.00475fc0
mov dword [0x8c3efc], ebx
call fcn.004750a0
cmp eax, 0x20e
jne 0x440809
call fcn.00475010
mov dword [0x8c3f00], ebx
call fcn.00477030
cmp eax, 0x20e
jne 0x440820
call fcn.004767a0
mov dword [0x8c3ef0], ebx
call fcn.00404bc0
cmp eax, ebx
jne 0x44082f
mov dword [0x8c3ef4], ebx
push ebp
push ebp
call dword [sym.imp.WINMM.dll_sndPlaySoundA]
cmp dword [0xd0a7b0], ebp
jne 0x440848
cmp dword [0x4c2348], 0xffffffff
je 0x44084e
mov dword [0x8c3ef8], ebx
cmp dword [0xd0ad6c], ebp
je 0x44089c
xor esi, esi
mov eax, dword [esi + 0x8c4328]
cmp eax, ebp
je 0x440891
push eax
call fcn.004050d0
add esp, 4
test bl, al
mov dword [esi + 0x8c31b8], eax
je 0x440891
mov ecx, dword [esi + 0x8c4328]
lea eax, [esi + 0x8c35cc]
push eax
push ecx
call fcn.004051c0
add esp, 8
mov dword [esi + 0x8c3ae0], ebx
add esi, 4
cmp esi, 0x404
jl 0x440858
mov esi, 0x4f2c78
push esi
call fcn.0040b8f0
add esp, 4
cmp eax, 0x20e
jne 0x4408c3
push esi
call fcn.0040b8b0
add esp, 4
mov dword [esi + 0x18], ebx
mov dword [0x8c3f04], ebx
add esi, 0x124
cmp esi, 0x4f3eb8
jl 0x4408a1
cmp dword [0x4c23b0], ebp
je 0x440975
mov ebp, 0x4f5440
mov edi, 0x4f3ec0
mov esi, 0x4f1930
push esi
call fcn.0040b0f0
add esp, 4
cmp eax, 0x20e
jne 0x44090e
push esi
call fcn.0040ae40
add esp, 4
mov dword [esi + 0x10], ebx
mov dword [0x8c3f04], ebx
push edi
call fcn.0040bf50
add esp, 4
cmp eax, 0x20e
jne 0x440930
push edi
call fcn.0040be80
add esp, 4
mov dword [edi + 0x14], ebx
mov dword [0x8c3f04], ebx
push ebp
call fcn.0040cb80
add esp, 4
cmp eax, 0x20e
jne 0x440955
push ebp
call fcn.0040ae40
add esp, 4
mov dword [ebp + 0xec], ebx
mov dword [0x8c3f04], ebx
add esi, 0x134
add edi, 0x158
add ebp, 0x220
cmp esi, 0x4f2c70
jl 0x4408ec
xor ebp, ebp
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esi, 0x8e3b18
mov eax, dword [esi - 0x10]
cmp eax, ebp
je 0x440994
cmp dword [esi], ebx
jne 0x440994
push eax
call edi
mov dword [esi], 2
add esi, 0x18
cmp esi, 0x8e9908
jl 0x440980
call fcn.004012e0
pop edi
pop esi
pop ebp
pop ebx
ret