Function at 0x448150
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 + 0x72588]
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 + 0x37f5e]
push edx
push 0x643232
lea ecx, [esi + 0x38128]
push eax
mov dword [esp + 0x50], edi
mov ebp, edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x24], ebx
call fcn.004a5320
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
mov cl, byte [esi + 0x37f5e]
lea eax, [esp + 0x2c]
push edx
push eax
push 0x641e1e
push ecx
lea ecx, [esi + 0x38128]
call fcn.004a5320
lea edx, [esp + 0x2c]
lea eax, [esp + 0x30]
push edx
mov dl, byte [esi + 0x37f5e]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0x1e0000
push edx
lea ecx, [esi + 0x38128]
call fcn.004a5320
lea eax, [esp + 0x50]
lea ecx, [esp + 0x54]
push eax
mov al, byte [esi + 0x37f5e]
lea edx, [esp + 0x5c]
push ecx
push edx
push 0xc83232
push eax
lea ecx, [esi + 0x38128]
call fcn.004a5320
mov dword [esp + 0x44], 0
movsx eax, byte [esp + 0x84]
dec eax
je 0x44825f
dec eax
jne 0x44850a
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.00447e80
jmp 0x44850a
mov edx, dword [esp + 0x10]
push 0x14
push 0xf
push 0xf
push ebx
push edi
push edx
push ebp
mov ecx, esi
call fcn.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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.00447bb0
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 + 0x38128]
mov dword [esp + 0x80], 0
call fcn.004a5030
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
push ebx
push edi
lea ecx, [esi + 0x38128]
mov ebp, edi
mov dword [esp + 0x20], ebx
call fcn.004a4fb0
movsx eax, al
dec eax
cmp eax, 7
ja case.default.0x44857e
jmp dword [eax*4 + 0x4486ec]
sub dword [esp + 0x80], 5
jmp case.default.0x44857e
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.0x44857e
add dword [esp + 0x7c], 5
jmp case.default.0x44857e
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 0x448617
add dword [esp + 0x80], 5
jmp case.default.0x44857e
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 0x448617
sub dword [esp + 0x7c], 5
jmp case.default.0x44857e
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 0x448631
mov dword [esp + 0x7c], eax
jmp 0x44863e
cmp ecx, 0x14
jle 0x44863e
mov dword [esp + 0x7c], 0x14
mov ecx, dword [esp + 0x80]
cmp ecx, eax
jge 0x448652
mov dword [esp + 0x80], eax
jmp 0x448662
cmp ecx, 0x14
jle 0x448662
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 0x448699
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jl 0x4486af
mov eax, dword [esp + 0x44]
add eax, 0xa
cmp eax, 0x3e8
mov dword [esp + 0x44], eax
jl 0x448219
movsx eax, byte [esp + 0x84]
dec eax
jne 0x4486e0
mov ecx, dword [esp + 0x64]
push 0x1e
push ecx
call fcn.004a71a7
and eax, reloc.dsound.dll_DirectSoundCreate
jns 0x4486d2
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, dword [esi + 0x6e604]
push eax
push ebx
push edi
call fcn.0049f230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x1c