Function at 0x5bc830
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x60ed73
call fcn.004db48b
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00495765
lea eax, [edi + 0x20]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push eax
mov dword [edi], 0x63cac8
call esi
lea eax, [edi + 0x38]
push eax
call esi
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [edi + 0x70], ebx
mov dword [edi + 0x6c], ebx
mov dword [edi + 0x74], ebx
mov dword [edi + 0x78], ebx
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], ebx
push dword [ebp + 0x10]
mov byte [ebp - 4], 7
lea ecx, [edi + 0x18]
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0xc8], ebx
mov dword [edi + 0xd0], ebx
mov dword [edi + 0xd4], ebx
call fcn.0041bdfa
mov ecx, dword [ebp + 8]
call fcn.005c2570
mov esi, dword [ebp + 0xc]
lea ecx, [edi + 0x90]
mov dword [edi + 0x14], eax
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0x28]
mov ebx, dword [ebp + 0x18]
mov dword [ebx], eax
test eax, eax
js 0x5bcb21
mov eax, dword [esi]
lea ecx, [edi + 0x1c]
push ecx
push esi
call dword [eax + 0xc]
push dword [edi + 0x90]
lea ecx, [edi + 0x6c]
call fcn.004955cf
test eax, eax
jne 0x5bc8fd
mov dword [ebx], 0x8007000e
jmp 0x5bcb21
mov ecx, dword [ebp + 8]
call fcn.0041c10a
mov ecx, dword [edi + 0x18]
push eax
movzx edx, word [ecx + 0xe]
mov ecx, eax
shr edx, 3
lea eax, [edi + 0x54]
shr ecx, 3
imul edx, ecx
push eax
mov dword [edi + 0x94], edx
call sym.WSPlayer.exe_CreateSoundBuffer
mov dword [ebx], eax
test eax, eax
js 0x5bcb21
cmp dword [ebp + 0x14], 0
je 0x5bc955
mov eax, dword [edi + 0x94]
lea ecx, [edi + 0x58]
add eax, eax
push eax
push ecx
call sym.WSPlayer.exe_CreateSoundBuffer
mov dword [ebx], eax
test eax, eax
js 0x5bcb21
jmp 0x5bc967
mov eax, dword [edi + 0x58]
test eax, eax
je 0x5bc967
xor edx, edx
mov dword [edi + 0x58], edx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov dword [edi + 0xa4], 0x64
mov dword [edi + 0x84], eax
xor edx, edx
mov dword [edi + 0x88], eax
mov dword [edi + 0x8c], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], eax
mov eax, dword [edi + 0x90]
mov dword [edi + 0xa0], eax
mov eax, 0x320
mov dword [edi + 0xa8], 0xf
mov dword [edi + 0xac], 1
mov dword [edi + 0xb0], edx
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xb4], 0x12c
mov dword [edi + 0xb8], 0x1f4
mov dword [edi + 0x5c], eax
cmp dword [edi + 0x50], esi
je 0x5bc9ff
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x50]
mov dword [edi + 0x50], esi
test eax, eax
je 0x5bc9ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
mov dword [edi + 0x60], esi
cmp dword [0x67389c], esi
je 0x5bca5c
push 0x206b8
call fcn.004da873
xor edx, edx
mov dword [esp], 0x206b8
mov esi, eax
push edx
push esi
mov dword [ebp + 8], esi
call fcn.004e0bc0
mov ecx, dword [edi + 0x18]
movsd xmm0, qword [0x6457e0]
mov dword [edi + 0x60], esi
mov eax, dword [0x67389c]
movsd qword [esp + 4], xmm0
dec eax
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 2]
push eax
push dword [ecx + 4]
mov ecx, esi
call fcn.00495889
xor esi, esi
push esi
push dword [edi + 0xa8]
push edi
call fcn.005bc5c0
cmp dword [edi + 0x1c], 1
jne 0x5bca83
push 0x34
call fcn.004da873
pop ecx
mov ecx, eax
mov dword [ebp + 8], eax
call fcn.005bb210
jmp 0x5bca85
mov eax, esi
mov dword [edi + 0x64], eax
call dword [sym.imp.wspcomm.dll_Ordinal_105]
push esi
push esi
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x68], eax
call esi
xor edx, edx
mov dword [edi + 0xd0], eax
push edx
push edx
push edx
push edx
call esi
mov dword [edi + 0xd4], eax
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [edi + 0xe0], eax
mov dword [edi + 0xe4], 1
mov dword [edi + 0xc4], eax
mov dword [edi + 0xcc], eax
call esi
xor edx, edx
mov dword [edi + 0xd8], eax
push edx
push edx
push edx
push edx
call esi
mov dword [edi + 0xdc], eax
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
push edi
push 0x5bba00
push esi
push esi
call fcn.00504891
add esp, 0x18
mov dword [edi + 0xc8], eax
test eax, eax
je 0x5bcb1b
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebx], esi
jmp 0x5bcb21
mov dword [ebx], 0x80004005
mov eax, edi
call fcn.004db459
ret 0x14