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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x80
mov ecx, dword [esp + 0x84]
push ebx
push esi
push edi
push ebp
push eax
push ecx
call fcn.0044b9e0
mov di, word [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
add esp, 8
mov esi, eax
test esi, esi
je 0x4397a6
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00448a80
lea eax, [esp + 0x70]
add esp, 8
push eax
push esi
call fcn.00448ae0
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
add esp, 8
push eax
push ecx
push edx
call fcn.0044bb40
mov dword [esp + 0x3c], 0
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0xa8]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0xac]
add esp, 0xc
test di, di
mov dword [esp + 0x38], ecx
jne 0x439771
push 0x20306c0
push ebx
call fcn.0048bf00
add esp, 8
cmp ax, 3
jne 0x439541
mov ebp, dword [0x4edf30]
test ebp, ebp
je 0x439771
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push eax
push ecx
push edx
call fcn.0044baf0
add esp, 0xc
test eax, eax
je 0x439771
push ebp
call fcn.004c65e0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x20]
add esp, 4
mov eax, ecx
sub edi, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
mov ebp, eax
mov eax, edi
cdq
sub eax, edx
sub ebp, ecx
sar eax, 1
add ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0x2000204
sub ecx, edi
mov dword [esp + 0x48], ebp
add ecx, eax
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x4c], ecx
mov ax, word [0x4f0a78]
shl eax, 0x10
mov al, 1
push eax
call fcn.0048bf00
add esp, 8
test ax, ax
je 0x439534
push 0x2010640
xor eax, eax
mov ax, word [0x4f0a78]
shl eax, 0x10
mov al, 1
push eax
call fcn.0048bf00
add esp, 8
test ax, ax
je 0x439534
call fcn.004c6b90
movsx eax, ax
add dword [esp + 0x40], eax
call fcn.004c6b90
movsx eax, ax
add dword [esp + 0x48], eax
mov dword [esp + 0x30], 2
jmp 0x439771
cmp ax, 2
jne 0x439771
push 5
push ebx
call fcn.0048bf00
movzx eax, ax
add esp, 8
cmp eax, 2
je 0x43956c
cmp eax, 4
je 0x43966c
jmp 0x439771
push 0xf
push ebx
call fcn.0048a920
add esp, 8
mov edi, eax
test edi, edi
je 0x439771
mov eax, ebx
shr eax, 0x10
movsx ecx, ax
shl ecx, 6
mov eax, dword [0x4eaac8]
mov edx, dword [ecx + eax + 4]
xor eax, eax
mov al, bh
mov ecx, dword [edx]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x4395af
mov ecx, dword [eax]
xor eax, eax
mov al, bl
mov eax, dword [ecx + eax*4]
add eax, ecx
jmp 0x4395b8
push ebx
call fcn.0048a740
add esp, 4
push 0xf
push eax
call fcn.0047eb80
mov bp, ax
lea eax, [esp + 0x5e]
add esp, 8
push eax
call fcn.00410c00
add esp, 4
test eax, eax
je 0x43965e
movzx eax, bp
lea ecx, [esp + 0x56]
push eax
push edi
push ecx
call fcn.00410ca0
add esp, 0xc
test eax, eax
je 0x43965e
mov dword [esp + 0x30], 1
push 0
push 0
push 0x403
push ebx
call fcn.0043e7a0
fstp qword [esp + 0x80]
add esp, 0x10
push 0
push 0
push 0x405
push ebx
call fcn.0043e7a0
fstp qword [esp + 0x88]
lea eax, [esp + 0x78]
mov dword [esp + 0x78], ebx
add esp, 0x10
push eax
push esi
call fcn.00448ab0
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 8
push eax
push ecx
lea eax, [esp + 0x5e]
push edx
push eax
call fcn.00410e90
mov word [esp + 0x5c], ax
add esp, 0x10
push edi
call fcn.00479b40
add esp, 4
jmp 0x439771
mov eax, ebx
shr eax, 0x10
movsx ecx, ax
shl ecx, 6
mov eax, dword [0x4eaac8]
mov edx, dword [ecx + eax + 4]
xor ecx, ecx
mov cl, bh
mov ebp, dword [edx]
mov eax, dword [ebp + ecx*4]
test eax, eax
je 0x439699
mov eax, dword [eax]
xor ecx, ecx
mov cl, bl
add eax, dword [eax + ecx*4]
jmp 0x4396a2
push ebx
call fcn.0048a740
add esp, 4
lea ecx, [esp + 0x10]
push 8
push ecx
push 0x10
push eax
call fcn.0047ebb0
add esp, 0x10
test eax, eax
je 0x439771
movsx eax, word [esp + 0x10]
mov dword [esp + 0x3c], eax
movsx ecx, word [esp + 0x14]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x3c]
movsx edx, word [esp + 0x12]
mov dword [esp + 0x40], edx
push ecx
movsx eax, word [esp + 0x1a]
mov dword [esp + 0x4c], eax
call fcn.004397c0
mov dword [esp + 0x34], 2
add esp, 4
cmp dword [esp + 0x68], ebx
je 0x439771
push 0
push 0
push 0x403
push ebx
call fcn.0043e7a0
fstp qword [esp + 0x80]
add esp, 0x10
push 0
push 0
push 0x405
push ebx
call fcn.0043e7a0
fstp qword [esp + 0x88]
add esp, 0x10
push 0
push 0
push 0x404
push ebx
call fcn.0043e7a0
fstp qword [esp + 0x90]
add esp, 0x10
push 0
push 0
push 0x406
push ebx
call fcn.0043e7a0
fstp qword [esp + 0x98]
lea eax, [esp + 0x78]
mov dword [esp + 0x78], ebx
add esp, 0x10
push eax
push esi
call fcn.00448ab0
add esp, 8
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00448a10
add esp, 8
push 0x4edf34
call fcn.004176f0
add esp, 4
push ebx
call fcn.0048bd10
add esp, 4
cmp ax, 4
jne 0x4397a6
push 4
push ebx
call fcn.00437df0
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x80
ret