Function at 0x58f920
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x64971b
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 0x58f9a4
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 0x58f9f0
push 0
push 0x665614
push 0x66583c
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
mov eax, dword [ebx]
test eax, eax
je 0x58fa7c
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 0x58fa3f
push 0
push 0x665614
push 0x6657f8
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
mov eax, dword [ebx]
test eax, eax
je 0x58fa7c
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.0058dcc0
test al, al
jne 0x58fa93
push 0
push 0x665614
push 0x6657c4
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
mov eax, dword [ebx]
test eax, eax
je 0x58fa7c
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 0x58fac8
push 0
push 0x665614
push 0x665780
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 0x8c
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x58faf1
mov edx, dword [ebx]
push edx
mov ecx, eax
call fcn.005e1f10
jmp 0x58faf3
xor eax, eax
mov dword [ebp + 0xa0], eax
lea eax, [ebp + 0xd8]
push eax
push 0
push 0
push 0x58f900
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