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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esp + 0x6c]
lea edx, [esp + 0x10]
mov eax, dword [esi + 0x4dd44]
push edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
push edx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x20]
push eax
mov al, byte [esi + 0x36046]
push edx
push 0x643232
lea ecx, [esi + 0x36074]
push eax
mov dword [esp + 0x50], edi
mov ebp, edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], ebx
call fcn.0048fdd0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
mov cl, byte [esi + 0x36046]
lea eax, [esp + 0x2c]
push edx
push eax
push 0x641e1e
push ecx
lea ecx, [esi + 0x36074]
call fcn.0048fdd0
lea edx, [esp + 0x2c]
lea eax, [esp + 0x30]
push edx
mov dl, byte [esi + 0x36046]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0x1e0000
push edx
lea ecx, [esi + 0x36074]
call fcn.0048fdd0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x54]
push eax
mov al, byte [esi + 0x36046]
lea edx, [esp + 0x5c]
push ecx
push edx
push 0xc83232
push eax
lea ecx, [esi + 0x36074]
call fcn.0048fdd0
mov dword [esp + 0x44], 0
movsx eax, byte [esp + 0x84]
dec eax
je 0x43dddf
dec eax
jne 0x43e08a
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x14]
and eax, 0xffff
push edx
push eax
push ebx
push edi
push ecx
push ebp
mov ecx, esi
call fcn.0043d9a0
jmp 0x43e08a
mov edx, dword [esp + 0x10]
push 0x14
push 0xf
push 0xf
push ebx
push edi
push edx
push ebp
mov ecx, esi
call fcn.0043d670
mov edx, dword [esp + 0x14]
lea eax, [edi - 1]
and edx, 0xffff
lea ecx, [ebp - 1]
push edx
mov edx, dword [esp + 0x1c]
and edx, 0xffff
mov dword [esp + 0x50], ecx
push edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.0043d670
mov edx, dword [esp + 0x14]
lea eax, [edi + 1]
and edx, 0xffff
lea ecx, [ebp + 1]
push edx
mov edx, dword [esp + 0x1c]
and edx, 0xffff
mov dword [esp + 0x4c], ecx
push edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
push ebx
push eax
mov eax, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.0043d670
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
lea eax, [ebx - 1]
push edx
mov edx, dword [esp + 0x1c]
and edx, 0xffff
dec ecx
push edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
mov dword [esp + 0x40], ecx
push edx
push eax
push edi
push ecx
push ebp
mov ecx, esi
call fcn.0043d670
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
inc ecx
push edx
mov edx, dword [esp + 0x1c]
and edx, 0xffff
lea eax, [ebx + 1]
push edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
mov dword [esp + 0x64], ecx
push edx
push eax
push edi
push ecx
push ebp
mov ecx, esi
call fcn.0043d670
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [edi - 2]
push ebx
push eax
lea edx, [ebp - 2]
push ecx
push edx
mov ecx, esi
call fcn.0043d670
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [edi + 2]
push ebx
push eax
lea edx, [ebp + 2]
push ecx
push edx
mov ecx, esi
call fcn.0043d670
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
and eax, 0xffff
and ecx, 0xffff
push eax
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
lea eax, [ebx - 2]
push edx
push eax
add ecx, 0xfffffffe
push edi
push ecx
push ebp
mov ecx, esi
call fcn.0043d670
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
and edx, 0xffff
and eax, 0xffff
push edx
push eax
mov eax, dword [esp + 0x18]
and ecx, 0xffff
lea edx, [ebx + 2]
push ecx
push edx
add eax, 2
push edi
push eax
push ebp
mov ecx, esi
call fcn.0043d670
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
and ecx, 0xffff
push ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x54]
push eax
lea ebp, [ebx - 1]
lea eax, [edi - 1]
push ebp
push eax
push ecx
push edx
mov ecx, esi
call fcn.0043d670
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x50]
push edx
lea eax, [edi + 1]
push ebp
push eax
mov eax, dword [esp + 0x4c]
push eax
push ecx
mov ecx, esi
call fcn.0043d670
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x3c]
and ecx, 0xffff
push eax
push ecx
lea eax, [edi + 1]
push ebp
push eax
mov eax, dword [esp + 0x5c]
push edx
push eax
mov ecx, esi
call fcn.0043d670
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x60]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x54]
push eax
lea eax, [ebx + 1]
push eax
lea eax, [edi - 1]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0043d670
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x44]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
lea ecx, [esi + 0x36074]
mov dword [esp + 0x80], 0
call fcn.0048fae0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
push ebx
push edi
lea ecx, [esi + 0x36074]
mov ebp, edi
mov dword [esp + 0x20], ebx
call fcn.0048fa60
movsx eax, al
dec eax
cmp eax, 7
ja case.default.0x43e0fe
jmp dword [eax*4 + 0x43e26c]
sub dword [esp + 0x80], 5
jmp case.default.0x43e0fe
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
mov eax, 5
sub edx, eax
add ecx, eax
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], ecx
jmp case.default.0x43e0fe
add dword [esp + 0x7c], 5
jmp case.default.0x43e0fe
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, 5
add edx, eax
add ecx, eax
mov dword [esp + 0x7c], edx
jmp 0x43e197
add dword [esp + 0x80], 5
jmp case.default.0x43e0fe
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, 5
sub edx, eax
add ecx, eax
mov dword [esp + 0x7c], edx
jmp 0x43e197
sub dword [esp + 0x7c], 5
jmp case.default.0x43e0fe
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov eax, 5
sub edx, eax
sub ecx, eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x7c]
mov eax, 0xffffffec
cmp ecx, eax
jge 0x43e1b1
mov dword [esp + 0x7c], eax
jmp 0x43e1be
cmp ecx, 0x14
jle 0x43e1be
mov dword [esp + 0x7c], 0x14
mov ecx, dword [esp + 0x80]
cmp ecx, eax
jge 0x43e1d2
mov dword [esp + 0x80], eax
jmp 0x43e1e2
cmp ecx, 0x14
jle 0x43e1e2
mov dword [esp + 0x80], 0x14
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
add ebx, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x7c]
sub eax, edx
cdq
xor eax, edx
add edi, ecx
sub eax, edx
cmp eax, 5
jge 0x43e219
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jl 0x43e22f
mov eax, dword [esp + 0x44]
add eax, 0xa
cmp eax, 0x3e8
mov dword [esp + 0x44], eax
jl 0x43dd99
movsx eax, byte [esp + 0x84]
dec eax
jne 0x43e260
mov ecx, dword [esp + 0x64]
push 0x1e
push ecx
call fcn.004921f1
and eax, reloc.dsound.dll_DirectSoundCreate
jns 0x43e252
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, dword [esi + 0x4a0e0]
push eax
push ebx
push edi
call fcn.00489fc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x1c