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

Disassembly:
sub esp, 0xc0
mov eax, dword [0x442abc]
xor eax, esp
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xc4]
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x124]
mov ecx, 0xd
lea esi, [esp + 0xe0]
lea edi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x118]
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x12c]
lea eax, [esp + 0x9c]
xor edi, edi
push 0x43bc7c
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call section..text
add esp, 8
test eax, eax
jne 0x412389
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push eax
sub esp, 0x34
mov ecx, 0xd
lea esi, [esp + 0xdc]
mov edi, esp
lea ebx, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
call fcn.00411000
add esp, 0x44
test eax, eax
jne 0x4125ed
mov esi, dword [esp + 0x4c]
xor edi, edi
mov ecx, dword [esp + 0x30]
push edi
push esi
push ecx
call sub.DSOUND.dll_DirectSoundCreate8
test eax, eax
jge 0x4123a7
mov eax, 0x80004005
jmp 0x4125ed
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov eax, ebx
lea edi, [esp + 0x14]
call fcn.0040f120
xor edi, edi
cmp eax, edi
je 0x41236f
jmp 0x4125ed
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 2
push eax
mov eax, dword [edx + 0x18]
push ecx
call eax
test eax, eax
jl 0x41237f
mov ecx, dword [0x43b4f0]
mov eax, dword [0x43b4f8]
mov edx, dword [0x43b4f4]
mov dword [esp + 0x64], ecx
mov ecx, dword [0x43b4fc]
mov dword [esp + 0x70], ecx
push edi
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x74], eax
mov eax, dword [esi]
mov dword [esp + 0x70], edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x24
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x18], edi
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
test eax, eax
jl 0x41237f
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push ebx
push eax
call edx
test eax, eax
jl 0x41237f
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41244f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov ecx, dword [ebx + 8]
imul ecx, dword [esp + 0xdc]
mov eax, 0x10624dd3
mul ecx
mov edi, edx
lea edx, [esp + 0x9c]
push 0x43bc7c
push edx
shr edi, 6
mov dword [esp + 0x7c], 0x24
call section..text
mov edx, dword [0x43b4f8]
mov ecx, dword [0x43b4f4]
add esp, 8
neg eax
sbb eax, eax
and eax, 0x80
add eax, 0x18000
mov dword [esp + 0x78], eax
mov eax, dword [0x43b4f0]
mov dword [esp + 0x88], eax
mov eax, dword [0x43b4fc]
push 0
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
mov eax, dword [esi]
push ebp
lea edx, [esp + 0x7c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x94], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x412500
mov eax, 0x88890008
jmp 0x4125ed
mov eax, dword [ebp]
mov ecx, dword [eax]
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x41237f
test byte [esp + 0x3c], 2
je 0x41254d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push eax
call edx
cmp eax, 0x88780096
jne 0x41253b
push 0xa
call esi
mov eax, dword [ebp]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push eax
call edx
cmp eax, 0x88780096
je 0x412525
mov ecx, dword [ebx + 8]
imul ecx, dword [esp + 0xd8]
add ecx, ecx
mov eax, 0x10624dd3
mul ecx
mov eax, dword [ebp]
xor ecx, ecx
push ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov esi, edx
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
lea ecx, [esp + 0x34]
push ecx
shr esi, 6
push esi
push 0
push eax
call edx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov ebp, dword [ebp]
mov eax, dword [ebp]
mov eax, dword [eax + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
push ecx
push edx
push ebp
call eax
cmp esi, edi
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [ecx], edi
mov dword [eax], esi
jb 0x4125d1
mov dword [eax], 0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov dword [edx], ebx
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004217dd
add esp, 0xc0
ret