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

Disassembly:
sub esp, 0x58
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esp + 0x6c]
lea edx, [esp + 0x10]
mov eax, dword [esi + 0x72588]
push edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x5c], eax
mov al, byte [esp + 0x88]
push edx
cmp al, 2
lea eax, [esp + 0x1c]
lea edx, [esp + 0x20]
push eax
mov dword [esp + 0x44], edi
mov ebx, edi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x18], ebp
lea ecx, [esi + 0x38128]
push edx
jne 0x4487cc
mov al, byte [esi + 0x37f5e]
push 0x643296
push eax
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 0x641e82
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 0x1e0064
push edx
lea ecx, [esi + 0x38128]
call fcn.004a5320
lea eax, [esp + 0x48]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push 0xc83296
jmp 0x44883d
mov al, byte [esi + 0x37f5e]
push 0x643232
push eax
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 + 0x48]
lea ecx, [esp + 0x4c]
push eax
lea edx, [esp + 0x54]
push ecx
push edx
push 0xc83232
mov al, byte [esi + 0x37f5e]
lea ecx, [esi + 0x38128]
push eax
call fcn.004a5320
mov dword [esp + 0x44], 0
movsx eax, byte [esp + 0x84]
dec eax
je 0x44889d
dec eax
jne 0x448b48
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x14]
and eax, 0xffff
push edx
push eax
push ebp
push edi
push ecx
push ebx
mov ecx, esi
call fcn.00447e80
jmp 0x448b48
mov edx, dword [esp + 0x10]
push 0x14
push 0xf
push 0xf
push ebp
push edi
push edx
push ebx
mov ecx, esi
call fcn.00447bb0
mov edx, dword [esp + 0x14]
lea eax, [edi - 1]
and edx, 0xffff
lea ecx, [ebx - 1]
push edx
mov edx, dword [esp + 0x1c]
and edx, 0xffff
mov dword [esp + 0x5c], ecx
push edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
push ebp
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, [ebx + 1]
push edx
mov edx, dword [esp + 0x1c]
and edx, 0xffff
mov dword [esp + 0x58], ecx
push edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
push ebp
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, [ebp - 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 ebx
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, [ebp + 1]
push edx
mov edx, dword [esp + 0x24]
and edx, 0xffff
mov dword [esp + 0x68], ecx
push edx
push eax
push edi
push ecx
push ebx
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 ebp
push eax
lea edx, [ebx - 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 ebp
push eax
lea edx, [ebx + 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, [ebp - 2]
push edx
push eax
add ecx, 0xfffffffe
push edi
push ecx
push ebx
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, [ebp + 2]
push ecx
push edx
add eax, 2
push edi
push eax
push ebx
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 + 0x60]
push eax
lea ebx, [ebp - 1]
lea eax, [edi - 1]
push ebx
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 + 0x5c]
push edx
lea eax, [edi + 1]
push ebx
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 ebx
push eax
mov eax, dword [esp + 0x68]
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 + 0x64]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x60]
push eax
lea eax, [ebp + 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 + 0x64]
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 + 0x84], 0
call fcn.004a5030
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
push ebp
push edi
lea ecx, [esi + 0x38128]
mov ebx, edi
mov dword [esp + 0x20], ebp
call fcn.004a4fb0
movsx eax, al
dec eax
cmp eax, 7
ja case.default.0x448bbc
jmp dword [eax*4 + 0x448d68]
sub dword [esp + 0x80], 5
jmp case.default.0x448bbc
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.0x448bbc
add dword [esp + 0x7c], 5
jmp case.default.0x448bbc
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 0x448c55
add dword [esp + 0x80], 5
jmp case.default.0x448bbc
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 0x448c55
sub dword [esp + 0x7c], 5
jmp case.default.0x448bbc
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 0x448c6f
mov dword [esp + 0x7c], eax
jmp 0x448c7c
cmp ecx, 0x14
jle 0x448c7c
mov dword [esp + 0x7c], 0x14
mov ecx, dword [esp + 0x80]
cmp ecx, eax
jge 0x448c90
mov dword [esp + 0x80], eax
jmp 0x448ca0
cmp ecx, 0x14
jle 0x448ca0
mov dword [esp + 0x80], 0x14
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
add ebp, 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 0x448cd7
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x78]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 5
jl 0x448ced
mov eax, dword [esp + 0x44]
add eax, 0xa
cmp eax, 0x3e8
mov dword [esp + 0x44], eax
jl 0x448857
movsx eax, byte [esp + 0x84]
dec eax
jne 0x448d5c
cmp byte [esp + 0x88], 2
jne 0x448d36
mov ecx, dword [esp + 0x5c]
push ecx
push 0
push 0
push 0xa
call fcn.004a71a7
and eax, reloc.dsound.dll_DirectSoundCreate
jns 0x448d1e
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, dword [esi + 0x6e604]
push eax
push ebp
push edi
call fcn.004a2380
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x20
mov edx, dword [esp + 0x5c]
push 0x1e
push edx
call fcn.004a71a7
and eax, reloc.dsound.dll_DirectSoundCreate
jns 0x448d4e
dec eax
or eax, 0xfffffffe
inc eax
mov ecx, dword [esi + 0x6e604]
push eax
push ebp
push edi
call fcn.0049f230
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x20