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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, edx
mov edx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0xc], edx
mov eax, dword [edi]
movzx ecx, byte [edi + 0x1c]
mov esi, dword [edx + 8]
not ecx
and ecx, 1
mov eax, dword [eax]
inc dword [edx + 0x4c]
mov ebx, dword [edx + 0x4c]
mov dword [esp + 0x10], eax
add eax, ecx
add eax, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ebx
je 0x4aebdf
mov ebx, dword [ebp + 0xc]
sub ebx, dword [esp + 0x10]
sub ebx, ecx
jmp 0x4aebe7
inc ebx
add eax, dword [esp + 0x1c]
mov dword [edx + 0x4c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4aebf4
inc ecx
jmp 0x4aebf7
mov ecx, dword [eax + 0xc]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov ecx, dword [edx + 0x74]
mov dword [esp + 0x2c], ecx
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x4aec3c
mov edx, dword [edx + 0x78]
lea eax, [ecx*8 + 4]
mov ecx, dword [esp + 0x24]
push 0
push eax
mov ecx, dword [ecx]
call fcn.0045a1b0
mov edx, dword [esp + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x2c]
mov dword [edx + 0x78], eax
mov eax, dword [edx + 0x78]
test eax, eax
je 0x4aec4a
mov dword [eax + ecx*4], 0xffffffff
mov edx, dword [edi]
or eax, 0xffffffff
push 5
push dword [ebp + 0x10]
sub eax, ecx
mov ecx, dword [esp + 0x14]
push ebx
mov dword [edi + 0x18], eax
call fcn.00491f90
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x10]
test ecx, ecx
je 0x4aece8
mov ecx, dword [esi + 0x20]
lea eax, [ebx + edx]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4aecaa
push 0
push dword [esp + 0x30]
mov edx, 0x49
mov ecx, esi
push dword [esp + 0x2c]
call fcn.004791e0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4aece4
mov edi, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], edi
lea edi, [ebx + edx]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x28]
mov word [eax + ecx*4], 0x49
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
cmp dword [ebp + 0x18], 0
jne 0x4aed06
push dword [ebp + 0x14]
lea eax, [ebx + edx]
mov edx, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x10]
push eax
call fcn.00490c40
add esp, 8
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0x30]
sub edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4aed36
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov ecx, esi
push edx
add eax, ebx
mov edx, 0x31
push eax
call fcn.004791e0
add esp, 0xc
jmp 0x4aed6f
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
add edi, ebx
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x28]
mov word [eax + ecx*4], 0x31
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x18], 0
jle 0x4aef96
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x4c]
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 4]
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x4c], eax
mov edx, ecx
sub edx, dword [edi + 4]
mov eax, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x34], edx
test eax, eax
je 0x4aedb2
lea eax, [ebx + ecx]
mov edx, 0x2e
push eax
jmp 0x4aedba
push dword [edi + 8]
mov edx, 0x3b
mov ecx, esi
call fcn.00479300
add esp, 4
mov dword [esp + 0x24], eax
mov edx, 0x2a
mov ecx, esi
push dword [edi + 4]
push ebx
push dword [esp + 0x34]
call fcn.00479220
mov ecx, dword [edi + 0x14]
add esp, 0xc
test ecx, ecx
jns 0x4aedea
mov ecx, dword [esi + 0x20]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4aedf9
mov ecx, 0x5a2a64
jmp 0x4aee02
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov eax, dword [eax]
cmp byte [eax + 0x45], 0
jne 0x4af075
mov eax, dword [esp + 0x34]
add eax, dword [ebp + 0x14]
mov dword [ecx + 8], eax
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x14], ecx
movzx eax, word [ecx + 6]
push eax
push 0
push dword [ecx + 0x10]
call fcn.00509d10
mov ecx, dword [esi]
add esp, 0xc
cmp byte [ecx + 0x45], 0
je 0x4aee58
push dword [esp + 0x14]
mov edx, 0xfffffffa
call fcn.00479ca0
mov eax, dword [esp + 0x18]
add esp, 4
jmp 0x4aee8f
mov eax, dword [esi + 0x20]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x4aee84
push 0xfffffffffffffffa
push dword [esp + 0x18]
mov edx, ecx
mov ecx, esi
call fcn.00479ec0
mov eax, dword [esp + 0x1c]
add esp, 8
jmp 0x4aee8f
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfa
movzx eax, word [eax + 8]
mov edx, dword [edi]
dec eax
mov ecx, dword [esp + 0xc]
push eax
push dword [esp + 0x1c]
call fcn.004afee0
mov ecx, dword [esp + 0x30]
mov edx, 0x2b
mov dword [ecx + 0x10], eax
mov ecx, esi
mov eax, dword [esi + 0x20]
mov dword [esp + 0x3c], eax
inc eax
push eax
push 0
push eax
call fcn.00479220
add esp, 0x14
mov ecx, esi
call fcn.00479930
mov ecx, dword [esp + 0xc]
mov edx, 0xe
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x4c]
inc eax
mov dword [ecx + 0x4c], eax
mov ecx, esi
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
push eax
call fcn.00479370
push dword [edi + 8]
mov edx, 0x78
mov ecx, esi
call fcn.00479300
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x4aef1b
push dword [edi + 0x18]
mov edx, 0x2e
mov ecx, esi
push eax
call fcn.00479370
add esp, 8
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x4aef33
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4aef42
mov eax, 0x5a2a64
jmp 0x4aef4b
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], edx
mov edx, ebx
push dword [edi + 4]
push dword [esp + 0x30]
call fcn.00490c40
mov ecx, dword [esi + 0x20]
add esp, 8
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x4aef7b
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4aef8a
mov eax, 0x5a2a64
jmp 0x4aef93
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov al, byte [edi + 0x1c]
mov ecx, dword [esi + 0x20]
and al, 1
mov ebx, dword [edi + 8]
movzx edx, al
mov eax, dword [esi + 0x18]
neg edx
sbb edx, edx
add edx, 0x6e
cmp dword [eax + 0x58], ecx
jg 0x4aefc6
push 0
push dword [esp + 0x20]
mov ecx, esi
push ebx
call fcn.004791e0
add esp, 0xc
jmp 0x4aeffb
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4], dl
mov edx, dword [esp + 0x1c]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4af075
push 1
push 0
push eax
mov edx, 0x8c
mov ecx, esi
call fcn.00479220
add esp, 0xc
mov edx, 0x69
mov ecx, esi
mov ebx, eax
push dword [edi + 8]
call fcn.00479300
add esp, 4
mov edx, 0x5f
mov ecx, esi
push dword [edi + 8]
call fcn.00479300
mov ecx, dword [esi + 0x20]
add esp, 4
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov edx, dword [esi + 0x20]
test ebx, ebx
jns 0x4af051
lea ebx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4af068
mov eax, 0x5a2a64
mov dword [eax + 8], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
lea ecx, [ebx + ebx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret