Function at 0x5b5280
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6ca19b
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x1c]
push edi
lea ebx, [ebp + 4]
lea edi, [ebp + 0xc]
mov ecx, 0xd
mov byte [ebp + 8], 0
mov dword [ebx], eax
mov dword [ebp + 0xa0], eax
mov dword [ebp + 0xd4], eax
mov dword [ebp + 0x110], eax
mov dword [ebp + 0xd8], eax
mov dword [ebp + 0x10c], 0x3f800000
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x10], eax
push eax
jne 0x5b5304
push str.CSoundMgr::Init
push str.Not_Init_hWnd__
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebx
push eax
call sub.dsound.dll_DirectSoundCreate8
test eax, eax
jge 0x5b5350
push 0
push 0x6ee3b4
push 0x6ee5bc
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
mov eax, dword [ebx]
test eax, eax
je 0x5b53dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx], 0
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebx]
mov edx, dword [eax]
push 3
push ecx
push eax
call dword [edx + 0x18]
test eax, eax
jge 0x5b539f
push 0
push 0x6ee3b4
push 0x6ee578
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
mov eax, dword [ebx]
test eax, eax
je 0x5b53dc
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [ebx], 0
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x2c]
push eax
push ecx
push edx
mov ecx, ebp
call fcn.005b34d0
test al, al
jne 0x5b53f3
push 0
push 0x6ee3b4
push 0x6ee544
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
mov eax, dword [ebx]
test eax, eax
je 0x5b53dc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx], 0
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
lea edx, [ebp + 0x40]
xor eax, eax
mov edi, edx
mov ecx, 0x18
rep stosd dword es:[edi], eax
mov eax, dword [ebx]
push edx
mov dword [edx], 0x60
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
jge 0x5b5428
push 0
push 0x6ee3b4
push 0x6ee500
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 0x8c
call fcn.006918d6
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x5b5451
mov edx, dword [ebx]
push edx
mov ecx, eax
call fcn.005fdb10
jmp 0x5b5453
xor eax, eax
mov dword [ebp + 0xa0], eax
lea eax, [ebp + 0xd8]
push eax
push 0
push 0
push 0x5b5260
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + 0xd4], eax
xor ecx, ecx
lea eax, [ebp + 0xf4]
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
push eax
mov dword [edx + 0x14], ecx
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov ecx, dword [esp + 0x10]
pop edi
mov al, 1
pop esi
mov byte [ebp + 8], al
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4