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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xe0
mov dword [esp + 0x14], edx
mov esi, ecx
movzx ebx, byte [esp + 0xf4]
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp], 0
mov dword [esp + 0xdc], eax
cmp ebx, 4
ja case.0x4a4892.3
jmp dword [ebx*4 + 0x5ec0e0]
lea eax, [esi + 0x3c]
jmp 0x4a48ab
lea eax, [esi + 0x54]
jmp 0x4a48ab
lea eax, [esi + 0x48]
jmp 0x4a48ab
lea eax, [esi + 0x60]
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax + 8]
test eax, 0x3fff0000
je 0x4a4d34
test eax, 0x40000000
jne 0x4a48dd
mov eax, dword [esp]
cmp word [eax], 0
jne 0x4a48dd
mov eax, dword [esp]
cmp word [eax + 2], 0
je 0x4a4d34
movzx eax, bl
mov dword [esp + 0x1c], eax
push 0x32
push 0
push esi
call fcn.00478c90
add esp, 0xc
mov dword [esp + 0x28], eax
push 0x10
push 0
push esi
call fcn.00478c90
add esp, 0xc
mov dword [esp + 0xc], eax
push esi
call fcn.00474e00
add esp, 4
mov edi, eax
movzx eax, word [esi + 0x86]
mov dword [esp + 0x18], eax
movzx eax, word [esi + 0x16]
mov dword [esp + 0x24], eax
push esi
call fcn.00476c40
add esp, 4
mov dword [esp + 0x34], eax
movsx eax, di
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
test bl, bl
mov dword [esp + 0x20], esi
je 0x4a4969
push 0x13
push 0x60000
push esi
call fcn.00478c90
add esp, 0xc
mov dword [esp + 0x10], eax
lea eax, [esi + 0x18]
mov dword [esp + 8], eax
mov ax, 1
mov dword [esp + 4], eax
jmp 0x4a498c
lea eax, [esi + 0x14]
mov dword [esp + 8], eax
mov ax, 0xffff
mov dword [esp + 4], eax
push 0x12
push 0x60000
push esi
call fcn.00478c90
add esp, 0xc
mov dword [esp + 0x10], eax
xor eax, eax
mov edx, dword [esp + 0x2c]
test dl, dl
setne al
mov dword [esp + 0x40], eax
mov ebx, dword [esp]
mov eax, dword [ebx]
mov edi, eax
neg edi
movzx ebp, word [ebx + 2]
mov ecx, ebp
neg ecx
cmp dl, 1
cmove edi, eax
mov dword [esp + 0x3c], edi
cmove ecx, ebp
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
add ax, word [ecx]
mov dword [esp + 4], eax
lea esi, [esp + 0xb8]
push esi
call fcn.0047e2e0
add esp, 4
push esi
push 0x60000
mov edi, dword [esp + 0x28]
push edi
call fcn.00473d40
add esp, 0xc
lea ebp, [esp + 0x98]
push ebp
call fcn.0047d770
add esp, 4
push ebp
push 0x60000
push edi
call fcn.00473b20
add esp, 0xc
lea eax, [esp + 0x50]
push dword [esp + 0x14]
push eax
call fcn.00474070
add esp, 8
mov dword [esp + 0x54], 0x5ebff0
mov dword [esp + 0x58], 6
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], 0x60000
mov dword [esp + 0x68], esi
mov esi, edi
mov dword [esp + 0x64], ebp
mov ecx, dword [ebx + 8]
mov eax, ecx
shr eax, 0xf
and eax, 0x7fff
dec eax
and ecx, 0x7fff
imul ecx, eax
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x18]
shr eax, 8
cwde
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0xc]
add edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add eax, edx
sub eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], ecx
jmp 0x4a4ac4
lea eax, [esp + 0x50]
push eax
push 0x1b
push ebp
call fcn.0046e9e0
add esp, 0xc
mov ebx, dword [esp + 8]
inc ebx
dec edi
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
mov esi, ebp
jb 0x4a4d34
mov dword [esp + 0x28], edi
mov edi, ecx
movsx ecx, word [esp + 0xba]
mov eax, dword [esp + 0x18]
sub eax, ecx
imul eax, ebx
xor edx, edx
div edi
add eax, dword [esp + 0x24]
mov word [esp + 0xca], ax
mov word [esp + 0xc6], ax
mov ebp, dword [esp + 4]
mov word [esp + 0xc8], bp
mov eax, dword [esp]
mov ecx, dword [eax + 8]
mov eax, 0x7fff
and ecx, eax
mov dword [esp + 8], ebx
mov eax, ebx
xor edx, edx
div ecx
mov ebx, edx
test edx, edx
mov eax, dword [esp + 0x38]
cmove eax, dword [esp + 0x3c]
add eax, ebp
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc8]
mov dword [esp + 0x74], eax
lea eax, [esp + 0xc4]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x40]
movsx eax, word [esi + ecx*2 + 0x70]
movsx ecx, word [esi + ecx*2 + 0x6c]
push eax
push ecx
push edi
push 0
mov eax, dword [esp + 0x38]
mov edi, eax
push eax
call fcn.004ae8e0
add esp, 0x14
mov dword [esp + 0x90], eax
test ebx, ebx
jne 0x4a4b7d
mov ecx, dword [esp]
test byte [ecx + 0xb], 0x40
jne 0x4a4c15
mov dword [esp + 0x64], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea eax, [esp + 0x50]
push eax
push 0x1a
mov ebp, dword [esp + 0x28]
push ebp
call fcn.0046e9e0
add esp, 0xc
movsx ecx, word [esp + 0xca]
movzx eax, word [esp + 0xba]
mov edx, eax
shr edx, 0xf
add edx, eax
movsx eax, dx
sar eax, 1
add ecx, eax
movsx edx, word [ebp + 0x16]
cmp ecx, edx
jl 0x4a4aa0
movsx ecx, word [esp + 0xc6]
sub ecx, eax
movsx eax, word [ebp + 0x1a]
cmp ecx, eax
jg 0x4a4aa0
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0xc0]
push eax
push dword [esp + 0x20]
call fcn.0047e300
add esp, 0x10
jmp 0x4a4aa0
push eax
push 0x6574ae
push 0x10
lea ebx, [esp + 0xd8]
push ebx
call fcn.004af600
add esp, 0x10
lea eax, [esp + 0x98]
mov dword [esp + 0x64], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0x10
lea eax, [esp + 0x50]
push eax
push 0x1a
mov ebp, dword [esp + 0x28]
push ebp
call fcn.0046e9e0
add esp, 0xc
movsx eax, word [esp + 0xaa]
movsx ecx, word [esp + 0xac]
push 0
push 0x1fff
push eax
push ecx
push dword [esp + 0xa8]
push dword [esp + 0x90]
lea eax, [esp + 0x64]
push eax
call fcn.004b1fa0
add esp, 0x1c
movzx edx, word [esp + 0xc6]
movzx eax, word [esp + 0x4e]
mov ecx, eax
shr ecx, 0xf
add ecx, eax
movsx ecx, cx
sar ecx, 1
mov eax, edx
sub eax, ecx
add ecx, edx
mov word [esp + 0x46], ax
mov word [esp + 0x4a], cx
movzx ebx, word [esp + 0xc4]
cmp byte [esp + 0x2c], 0
je 0x4a4cd7
add ebx, dword [esp + 0x10]
mov word [esp + 0x44], bx
add bx, word [esp + 0x4c]
jmp 0x4a4cf4
movzx edx, word [esp + 0x4c]
mov esi, dword [esp + 0x10]
add dx, si
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, dword [esp + 0xc]
mov word [esp + 0x44], dx
sub ebx, esi
mov word [esp + 0x48], bx
cmp cx, word [ebp + 0x16]
jl 0x4a4bac
cmp ax, word [ebp + 0x1a]
jg 0x4a4bac
push 0
push dword [esp + 0x80]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x24]
call fcn.0047d7c0
add esp, 0x14
jmp 0x4a4bac
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.004c0e60
add esp, 0xe0
pop esi
pop edi
pop ebx
pop ebp
ret