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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x11c
mov ebp, edx
mov edi, ecx
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0x118], eax
lea ebx, [ecx + 0x14]
lea esi, [esp + 0xd8]
push dword [edx + 8]
push ebx
push esi
call fcn.004ad190
add esp, 0xc
test al, al
je 0x4a3d92
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [ebp + 8], esi
cmp word [edi + 0x82], 2
jb 0x4a3d92
push 0x32
push 0
push edi
call fcn.00478c90
add esp, 0xc
mov dword [esp], eax
push 0x12
push 0
push edi
call fcn.00478c90
add esp, 0xc
mov esi, eax
add esi, dword [esp]
push 0x10
push 0
push edi
call fcn.00478c90
add esp, 0xc
mov dword [esp + 0x10], ebx
mov ebx, eax
add ebx, dword [esp]
push edi
call fcn.00474da0
add esp, 4
mov word [esp + 8], ax
movzx eax, word [edi + 0x84]
mov dword [esp], eax
push edi
call fcn.00474e00
add esp, 4
mov word [esp + 0x20], ax
movzx eax, word [edi + 0x86]
mov dword [esp + 0xc], eax
add si, word [edi + 0x14]
mov dword [esp + 0x3c], esi
push edi
call fcn.00476d60
add esp, 4
mov esi, eax
add bx, word [edi + 0x16]
mov dword [esp + 0x38], ebx
push edi
call fcn.00476c40
add esp, 4
mov ebx, eax
lea eax, [esp + 0xc8]
push dword [ebp + 8]
push dword [esp + 0x14]
push eax
call fcn.004ad190
add esp, 0xc
test al, al
je 0x4a3d92
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebp
lea esi, [esp + 0xbc]
push esi
call fcn.0047e2e0
add esp, 4
push esi
push 0x50000
push edi
call fcn.00473d40
add esp, 0xc
lea esi, [esp + 0xe0]
push esi
call fcn.00480110
add esp, 4
push esi
push 0x20000
push edi
call fcn.00473750
add esp, 0xc
push 1
push 0x20000
push edi
call fcn.00478c90
add esp, 0xc
mov ebx, eax
movzx eax, bx
shr eax, 0xf
add eax, ebx
movsx esi, ax
sar esi, 1
push 4
push 0x20000
mov dword [esp + 0xc], edi
push edi
call fcn.00478c90
add esp, 0xc
mov ebp, eax
movzx eax, bp
shr eax, 0xf
add eax, ebp
movsx ecx, ax
sar ecx, 1
cmp si, cx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x34], esi
cmovl ecx, esi
movzx eax, word [esp + 0xbe]
mov edx, eax
shr edx, 0xf
add edx, eax
movsx edx, dx
shr edx, 1
cmp cx, dx
jle 0x4a379c
or byte [esp + 0xc5], 0x10
cmp ax, 1
jne 0x4a37aa
or byte [esp + 0xc5], 0x10
mov eax, dword [esp + 4]
movzx ecx, word [eax + 0x82]
mov dword [esp + 0x44], ecx
lea esi, [eax + 0x24]
push esi
call fcn.004ae470
add esp, 4
test eax, eax
je 0x4a3d87
mov edi, eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
sub dword [esp + 0x38], eax
movsx eax, word [esp + 8]
imul eax, dword [esp]
movsx ecx, word [esp + 0x20]
imul ecx, dword [esp + 0xc]
shr eax, 8
cwde
mov dword [esp + 0x1c], eax
shr ecx, 8
movsx eax, cx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
lea ecx, [eax + 1]
mov dword [esp + 0x5c], ecx
not eax
mov dword [esp + 0x58], eax
lea eax, [ebx - 2]
cmp ax, 0xfffd
setb al
lea ecx, [ebp - 2]
cmp cx, 0xfffd
setb cl
and cl, al
mov byte [esp + 0x17], cl
mov dword [esp + 0x50], esi
jmp 0x4a385c
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0xc]
push edi
push esi
call fcn.004ae390
add esp, 8
mov edi, eax
test eax, eax
je 0x4a3d87
movzx ecx, byte [edi + 0xc]
test cl, 1
jne 0x4a3848
movzx eax, word [edi + 8]
mov word [esp + 0xbc], ax
mov word [esp + 0xe4], ax
mov dword [esp], 0
mov ebx, dword [esp + 4]
test byte [ebx + 0x88], 8
mov edx, 0
jne 0x4a3896
movzx edx, word [edi + 0xa]
mov eax, dword [esp + 0x3c]
mov word [esp + 0xd4], ax
mov word [esp + 0xd0], ax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], edx
movsx edx, dx
mov dword [esp + 0x60], edx
movsx eax, word [eax + edx*2]
shr ecx, 3
and ecx, 2
movsx edx, word [ebx + ecx + 0x6c]
sub eax, edx
mov esi, dword [esp + 0x48]
imul eax, esi
movsx ecx, word [ebx + ecx + 0x70]
sub ecx, edx
cdq
idiv ecx
mov ecx, esi
sub ecx, eax
add ecx, dword [esp + 0x38]
mov word [esp + 0xd2], cx
mov ebp, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x78]
push eax
call fcn.00474070
add esp, 8
mov dword [esp + 0x78], 0x5ebff0
mov dword [esp + 0x7c], 3
mov dword [esp + 0xa8], 0x50000
lea eax, [esp + 0xbc]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xe0]
mov dword [esp + 0x84], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0xb8], edi
movzx edi, word [ebx + 0x82]
movsx ecx, word [esp + 0x54]
mov dword [esp + 0x40], ecx
test di, di
mov esi, dword [esp + 0x28]
je 0x4a3975
xor eax, eax
movzx ecx, word [esp + 0xd2]
mov dword [esp], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
jmp 0x4a39ff
xor ecx, ecx
xor edi, edi
jmp 0x4a3ca7
dec ecx
mov word [esp + 0xd0], cx
mov word [esp + 0xd4], cx
mov word [esp + 0xd6], di
xor eax, eax
cmp di, dx
sete al
add eax, edx
mov word [esp + 0xd2], ax
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0xc4]
push eax
mov edi, dword [esp + 0x24]
push edi
call fcn.0047e300
add esp, 0x10
inc word [esp + 0xd0]
mov eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
inc ebp
movzx edi, word [ebx + 0x82]
add eax, dword [esp + 0x1c]
mov dword [esp], ebp
cmp ebp, edi
jae 0x4a3ca4
mov ebp, ebx
mov ecx, dword [esp + 0x10]
mov edx, ecx
movsx ebx, word [esp + 0xd0]
mov word [esp + 0xd4], bx
movzx ecx, word [esp + 0xd2]
mov dword [esp + 0x68], ecx
mov word [esp + 0xd6], cx
movsx ecx, word [esi + 4]
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], ebx
cmp ecx, ebx
jl 0x4a3c9b
mov word [esp + 0x26], dx
movzx esi, di
lea ecx, [esi - 1]
mov dword [esp + 8], eax
cdq
idiv ecx
mov ecx, eax
add ecx, dword [esp + 0x3c]
mov word [esp + 0xd0], cx
mov eax, dword [esp + 0x60]
mov edi, dword [esp]
add eax, edi
cdq
idiv esi
mov esi, edx
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 4]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x10], esi
movsx eax, si
mov dword [esp + 0x20], eax
mov dword [esp + 0x64], ebx
movsx eax, word [ebx + eax*2]
shr edx, 3
and edx, 2
mov esi, ebp
movsx ebx, word [ebp + edx + 0x6c]
sub eax, ebx
mov ebp, dword [esp + 0x48]
imul eax, ebp
movsx esi, word [esi + edx + 0x70]
sub esi, ebx
cdq
idiv esi
mov esi, dword [esp + 0x28]
mov ebx, ebp
sub ebx, eax
add ebx, dword [esp + 0x38]
mov word [esp + 0xd2], bx
movsx eax, cx
movsx edx, word [esi]
add edx, dword [esp + 0x58]
cmp edx, eax
jg 0x4a3c30
test edi, edi
mov ebp, edi
je 0x4a39e0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x44]
jle 0x4a3c40
mov edx, dword [esp + 0x4c]
mov eax, edx
mov ecx, dword [esp + 0x34]
sub eax, ecx
mov word [esp + 0x6c], ax
lea eax, [edx + ecx]
mov word [esp + 0x70], ax
mov edx, dword [esp + 0x68]
mov eax, edx
mov ecx, dword [esp + 0x40]
sub eax, ecx
mov word [esp + 0x6e], ax
add edx, ecx
mov word [esp + 0x72], dx
lea eax, [ebp - 1]
mov dword [esp + 0xac], eax
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 4]
movsx esi, word [esp + 0x26]
movzx eax, word [eax + esi*2]
cmp eax, 0x7fff
lea eax, [esp + 0xd4]
mov ecx, 0
cmove eax, ecx
mov dword [esp + 0x98], eax
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x20]
movzx eax, word [eax + edx*2]
cmp eax, 0x7fff
lea eax, [esp + 0xd0]
cmove eax, ecx
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 4]
movsx eax, word [eax + esi*2]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x74]
push eax
push 0x1a
mov ebx, dword [esp + 0xc]
push ebx
call fcn.0046e9e0
add esp, 0xc
mov eax, dword [edi + 4]
movzx ecx, word [eax + esi*2]
cmp ecx, 0x7fff
mov ecx, dword [esp + 0x18]
mov edi, ecx
je 0x4a3be1
mov edx, dword [esp + 0x20]
movzx eax, word [eax + edx*2]
cmp eax, 0x7fff
je 0x4a3be1
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0xc4]
push eax
push ecx
call fcn.0047e300
add esp, 0x10
cmp byte [esp + 0x17], 0
je 0x4a3c10
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
movzx eax, word [eax + esi*2]
cmp eax, 0x7fff
je 0x4a3c10
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0xe4]
push eax
push edi
call fcn.00480170
add esp, 0xc
lea eax, [esp + 0x74]
push eax
push 0x1b
push ebx
call fcn.0046e9e0
add esp, 0xc
mov esi, dword [esp + 0x28]
jmp 0x4a39e4
mov ebx, dword [esp + 4]
mov ebp, edi
jmp 0x4a39e4
movsx eax, word [esp + 0x26]
mov edx, dword [esp + 0x64]
movzx eax, word [edx + eax*2]
cmp eax, 0x7fff
mov eax, dword [esp + 0x20]
je 0x4a39e0
movzx eax, word [edx + eax*2]
cmp eax, 0x7fff
je 0x4a39e0
mov edx, dword [esp + 0x30]
cmp dx, bx
mov eax, ebx
cmovg eax, edx
mov edx, eax
mov edi, dword [esp + 0x2c]
cmp di, bx
cmovge edi, ebx
cmp word [esp + 0x4c], cx
jne 0x4a397e
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edx
jmp 0x4a39e0
mov ecx, dword [esp]
mov esi, edx
mov ebx, ebp
jmp 0x4a3cab
mov ecx, dword [esp]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x44]
jle 0x4a3840
cmp cx, di
jne 0x4a3840
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
movsx eax, si
movzx ecx, word [ecx + eax*2]
cmp ecx, 0x7fff
je 0x4a3840
mov ecx, dword [esp + 0xd0]
mov edx, ecx
mov esi, dword [esp + 0x34]
sub edx, esi
mov word [esp + 0x6c], dx
add ecx, esi
mov word [esp + 0x70], cx
movzx ecx, word [esp + 0xd2]
mov edx, ecx
mov esi, dword [esp + 0x40]
sub edx, esi
mov word [esp + 0x6e], dx
add ecx, esi
mov word [esp + 0x72], cx
mov ecx, dword [esp]
dec ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
lea ebp, [esp + 0x6c]
mov dword [esp + 0x80], ebp
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
movsx eax, word [ecx + eax*2]
mov dword [esp + 0xb4], eax
lea esi, [esp + 0x74]
push esi
push 0x1a
push ebx
call fcn.0046e9e0
add esp, 0xc
push ebp
lea eax, [esp + 0xe4]
push eax
push dword [esp + 0x20]
call fcn.00480170
add esp, 0xc
push esi
push 0x1b
push ebx
call fcn.0046e9e0
add esp, 0xc
jmp 0x4a3840
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004c0e60
add esp, 0x11c
pop esi
pop edi
pop ebx
pop ebp
ret