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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xf4
mov ebp, ecx
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0xf0], eax
lea eax, [ecx + 0x14]
lea esi, [esp + 0xb0]
mov dword [esp + 0xc], edx
push dword [edx + 8]
push eax
push esi
call fcn.004ad190
add esp, 0xc
test al, al
je 0x4a4841
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov dword [esp + 0x3c], eax
mov dword [ecx + 8], esi
push 0x32
push 0
push ebp
call fcn.00478c90
add esp, 0xc
mov edi, eax
push 0x12
push 0
push ebp
call fcn.00478c90
add esp, 0xc
mov ebx, eax
push 0x10
push 0
push ebp
call fcn.00478c90
add esp, 0xc
mov esi, eax
push ebp
call fcn.00474da0
add esp, 4
mov word [esp + 0x10], ax
movzx eax, word [ebp + 0x84]
mov dword [esp + 0x14], eax
push ebp
call fcn.00474e00
add esp, 4
mov word [esp], ax
movzx eax, word [ebp + 0x86]
mov dword [esp + 0x18], eax
add ebx, edi
add bx, word [ebp + 0x14]
push ebp
call fcn.00476d60
add esp, 4
mov dword [esp + 0x2c], eax
add esi, edi
add si, word [ebp + 0x16]
mov dword [esp + 0x20], esi
push ebp
call fcn.00476c40
add esp, 4
mov dword [esp + 0x28], eax
lea esi, [esp + 0x9c]
push esi
call fcn.0047e2e0
add esp, 4
push esi
push 0x50000
push ebp
call fcn.00473d40
add esp, 0xc
lea esi, [esp + 0xb8]
push esi
call fcn.00480110
add esp, 4
push esi
push 0x20000
push ebp
call fcn.00473750
add esp, 0xc
push 1
push 0x20000
push ebp
call fcn.00478c90
add esp, 0xc
movzx ecx, ax
shr ecx, 0xf
mov dword [esp + 4], eax
add ecx, eax
movsx esi, cx
sar esi, 1
push 4
push 0x20000
mov dword [esp + 0x24], ebp
push ebp
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 + 0x40], ecx
mov dword [esp + 0x44], esi
cmovl ecx, esi
movzx eax, word [esp + 0x9e]
mov edx, eax
shr edx, 0xf
add edx, eax
movsx edx, dx
shr edx, 1
cmp cx, dx
jle 0x4a4334
or byte [esp + 0xa5], 0x10
cmp ax, 1
jne 0x4a4342
or byte [esp + 0xa5], 0x10
mov eax, dword [esp + 0x1c]
add eax, 0x24
mov dword [esp + 0x48], eax
push eax
call fcn.004ae470
add esp, 4
test eax, eax
je 0x4a4836
mov esi, ebx
mov ebx, eax
movsx eax, word [esp]
mov ecx, dword [esp + 0x18]
imul ecx, eax
sub esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
sub dword [esp + 0x20], eax
movsx eax, word [esp + 0x10]
mov edx, dword [esp + 0x14]
imul edx, eax
shr ecx, 8
shr edx, 8
movsx eax, dx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
movsx eax, cx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 4]
add eax, 0xfffffffe
cmp ax, 0xfffd
setb al
lea ecx, [ebp - 2]
cmp cx, 0xfffd
setb cl
and cl, al
mov byte [esp + 0xb], cl
mov dword [esp + 0x24], esi
jmp 0x4a43ea
mov ebx, dword [esp]
push ebx
push dword [esp + 0x4c]
call fcn.004ae390
add esp, 8
mov ebx, eax
test eax, eax
je 0x4a4836
movzx eax, byte [ebx + 0xc]
test al, 1
jne 0x4a43d3
movzx ecx, word [ebx + 8]
mov word [esp + 0x9c], cx
mov word [esp + 0xbc], cx
mov ebp, dword [esp + 0x1c]
test byte [ebp + 0x88], 8
jne 0x4a4420
movzx edx, word [ebx + 0xa]
jmp 0x4a4422
xor edx, edx
mov word [esp + 0xac], si
mov word [esp + 0xa8], si
mov ecx, dword [ebx + 4]
mov dword [esp + 4], edx
mov edi, esi
movsx esi, dx
cmp word [ecx + esi*2], 0xa
mov dword [esp + 0x2c], esi
jne 0x4a4460
mov word [esp + 0xa8], 0xe001
mov cx, 0xe001
jmp 0x4a44c6
shr eax, 2
and eax, 2
movsx ecx, word [ebp + eax + 0x78]
movsx eax, word [ebp + eax + 0x74]
mov edx, dword [ebx]
movsx edx, word [edx + esi*2]
push dword [esp + 0x14]
push 0
push ecx
push eax
push edx
call fcn.004ae8e0
add esp, 0x14
add eax, edi
mov word [esp + 0xa8], ax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
shr ecx, 3
and ecx, 2
movsx edx, word [ebp + ecx + 0x70]
movsx ecx, word [ebp + ecx + 0x6c]
movsx eax, word [eax + esi*2]
push dword [esp + 0x38]
push 0
push edx
push ecx
push eax
call fcn.004ae8e0
add esp, 0x14
mov ecx, dword [esp + 0x18]
sub ecx, eax
add ecx, dword [esp + 0x20]
mov word [esp + 0xaa], cx
push dword [esp + 0xc]
lea eax, [esp + 0x58]
push eax
call fcn.00474070
add esp, 8
mov dword [esp + 0x88], 0x50000
mov dword [esp + 0x58], 0x5ebff0
mov dword [esp + 0x5c], 3
lea eax, [esp + 0x9c]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xb8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x98], ebx
movzx ecx, word [ebp + 0x82]
movsx eax, word [esp + 0x44]
mov dword [esp + 0x30], eax
movsx eax, word [esp + 0x40]
mov dword [esp + 0x34], eax
test cx, cx
mov dword [esp], ebx
je 0x4a4774
xor ebx, ebx
mov edi, dword [esp + 4]
jmp 0x4a4578
lea eax, [esp + 0x54]
push eax
push 0x1b
mov ebp, dword [esp + 0x24]
push ebp
call fcn.0046e9e0
add esp, 0xc
mov edi, dword [esp + 4]
inc ebx
movzx ecx, word [ebp + 0x82]
cmp ebx, ecx
jae 0x4a4760
mov esi, edi
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x2c]
add eax, ebx
movzx ecx, cx
cdq
idiv ecx
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov edi, edx
movsx ecx, di
mov dword [esp + 0x10], ecx
movsx eax, word [eax + ecx*2]
cmp eax, 0x7fff
je 0x4a4568
mov word [esp + 0x28], si
mov esi, dword [esp]
mov ecx, dword [esi + 0xc]
shr ecx, 3
and ecx, 2
movsx edx, word [ebp + ecx + 0x70]
movsx ecx, word [ebp + ecx + 0x6c]
push dword [esp + 0x38]
push 0
push edx
push ecx
push eax
call fcn.004ae8e0
add esp, 0x14
mov ecx, dword [esp + 0x18]
sub ecx, eax
add ecx, dword [esp + 0x20]
mov word [esp + 0xaa], cx
mov eax, dword [esi]
mov ecx, dword [esi + 0xc]
shr ecx, 2
and ecx, 2
movsx edx, word [ebp + ecx + 0x78]
movsx ecx, word [ebp + ecx + 0x74]
mov esi, dword [esp + 0x10]
movsx eax, word [eax + esi*2]
movzx esi, word [esp + 0x28]
push dword [esp + 0x14]
push 0
push edx
push ecx
push eax
call fcn.004ae8e0
add esp, 0x14
add eax, dword [esp + 0x24]
mov word [esp + 0xa8], ax
test ebx, ebx
je 0x4a4568
mov dword [esp + 4], edi
mov eax, dword [esp + 0xac]
mov ecx, eax
mov edx, dword [esp + 0x30]
sub ecx, edx
mov word [esp + 0x4c], cx
add eax, edx
mov word [esp + 0x50], ax
movzx eax, word [esp + 0xae]
mov ecx, eax
mov edx, dword [esp + 0x34]
sub ecx, edx
mov word [esp + 0x4e], cx
add eax, edx
mov word [esp + 0x52], ax
lea eax, [ebx - 1]
mov dword [esp + 0x8c], eax
mov edi, dword [esp]
mov eax, dword [edi + 4]
movsx esi, si
movzx eax, word [eax + esi*2]
cmp eax, 0x7fff
lea eax, [esp + 0xac]
mov ecx, 0
cmove eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x10]
movzx eax, word [eax + edx*2]
cmp eax, 0x7fff
lea eax, [esp + 0xa8]
cmove eax, ecx
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 4]
movsx eax, word [eax + esi*2]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x54]
push eax
push 0x1a
push ebp
call fcn.0046e9e0
add esp, 0xc
mov eax, dword [edi + 4]
movzx ecx, word [eax + esi*2]
cmp ecx, 0x7fff
je 0x4a4550
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0x7fff
je 0x4a4550
lea eax, [esp + 0xa8]
push eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0xa4]
push eax
push dword [esp + 0x18]
call fcn.0047e300
add esp, 0x10
cmp byte [esp + 0xb], 0
je 0x4a4550
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xbc]
push eax
push dword [esp + 0x14]
call fcn.00480170
add esp, 0xc
jmp 0x4a4550
mov dword [esp + 4], edi
cmp bx, cx
mov esi, dword [esp + 0x24]
jne 0x4a43d0
dec ebx
jmp 0x4a477d
mov ebx, 0xffffffff
mov esi, dword [esp + 0x24]
mov eax, dword [esp]
mov ecx, dword [eax + 4]
movsx eax, word [esp + 4]
movzx ecx, word [ecx + eax*2]
cmp ecx, 0x7fff
je 0x4a43d0
mov ecx, dword [esp + 0xa8]
mov edx, ecx
mov edi, dword [esp + 0x30]
sub edx, edi
mov word [esp + 0x4c], dx
add ecx, edi
mov word [esp + 0x50], cx
movzx ecx, word [esp + 0xaa]
mov edx, ecx
mov edi, dword [esp + 0x34]
sub edx, edi
mov word [esp + 0x4e], dx
add ecx, edi
mov word [esp + 0x52], cx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
lea edi, [esp + 0x4c]
mov dword [esp + 0x60], edi
mov ecx, dword [esp]
mov ecx, dword [ecx + 4]
movsx eax, word [ecx + eax*2]
mov dword [esp + 0x94], eax
lea ebx, [esp + 0x54]
push ebx
push 0x1a
push ebp
call fcn.0046e9e0
add esp, 0xc
push edi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xbc]
push eax
push ecx
call fcn.00480170
add esp, 0xc
push ebx
push 0x1b
push ebp
call fcn.0046e9e0
add esp, 0xc
jmp 0x4a43d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004c0e60
add esp, 0xf4
pop esi
pop edi
pop ebx
pop ebp
ret