Function at 0x58d210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cf935
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
push edi
mov dword [esp + 0xc], esi
test eax, eax
je 0x58d24f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], 0
mov eax, dword [esi + 4]
lea edi, [esi + 4]
test eax, eax
je 0x58d267
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], 0
cmp byte [esi + 0xc], 0
je 0x58d277
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [esi + 0xc], 0
mov eax, dword [ebp + 8]
push 0x60
push str.DirectSound
lea ecx, [esp + 0x30]
mov dword [esi], eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00405440
push 0
mov dword [esp + 0x78], 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x58d33c
mov edi, 0x10
push edi
push 0x63b6e4
lea ecx, [esp + 0x30]
call fcn.00419290
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00410e40
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x58d2e3
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00419290
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x58d305
lea eax, [esp + 0x28]
mov edx, dword [ebp + 8]
push edi
push 0
push eax
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x3c], edi
jb 0x58d326
mov eax, dword [esp + 0x28]
push eax
call fcn.0052d217
add esp, 4
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
push 0
mov byte [esi + 0xc], 1
call dword [sym.imp.DSOUND.dll_DirectSoundCreate8]
mov esi, eax
test esi, esi
jns 0x58d3d5
push 0x16
push 0x63b6f8
lea ecx, [esp + 0x30]
call fcn.00419290
push esi
call fcn.00410e40
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x58d373
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00419290
mov eax, dword [esp + 0x28]
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jae 0x58d39a
lea eax, [esp + 0x28]
mov ecx, dword [ebp + 8]
push edi
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x3c], edi
jb 0x58d326
mov edx, dword [esp + 0x28]
push edx
call fcn.0052d217
add esp, 4
xor al, al
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push 2
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
test esi, esi
jns 0x58d453
push 0x26
push 0x63b710
lea ecx, [esp + 0x30]
call fcn.00419290
push esi
call fcn.00410e40
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x58d410
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00419290
mov eax, dword [esp + 0x28]
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jae 0x58d437
lea eax, [esp + 0x28]
mov ecx, dword [ebp + 8]
push edi
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [esp + 0xc]
call fcn.0058d170
jmp 0x58d3a8
xor eax, eax
push 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], 0x24
mov dword [esp + 0x50], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, eax
test esi, esi
jns 0x58d50c
push 0x24
push 0x63b738
lea ecx, [esp + 0x30]
call fcn.00419290
push esi
call fcn.00410e40
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x58d4c0
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.00419290
mov eax, dword [esp + 0x28]
mov edi, 0x10
cmp dword [esp + 0x3c], edi
jae 0x58d4e7
lea eax, [esp + 0x28]
mov ecx, dword [ebp + 8]
push edi
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [esp + 0xc]
call fcn.0058d170
lea ecx, [esp + 0x28]
call fcn.004868c0
jmp 0x58d326
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
mov eax, dword [ebx]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x20001
mov dword [esp + 0x18], 0xac44
mov dword [esp + 0x20], 0x100004
mov dword [esp + 0x1c], 0x2b110
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jns 0x58d57c
movzx ecx, word [esp + 0x20]
mov ebx, dword [ebx]
imul ecx, ecx, 0x5622
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0x5622
mov edx, dword [ebx]
mov ecx, dword [edx + 0x38]
push eax
push ebx
call ecx
mov edx, dword [edi]
lea ecx, [esp + 0x28]
mov dword [0x6923d8], edx
call fcn.004868c0
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4