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

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
push 8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov esi, dword [edi + 8]
mov ebp, dword [edi]
add esi, 0x28
push esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
call fcn.0048fc38
mov dword [edi + 0x14], ebx
inc ebx
cmp dword [edi + 0x5c], 7
pop ecx
pop ecx
jne 0x4aef0c
mov byte [ebp + 0x1e], bl
jmp 0x4af1bb
mov al, byte [edi + 0x61]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], al
cmp al, bl
jne 0x4aef74
mov ebp, dword [edi + 8]
add ebp, 0x168
mov dword [esp + 0x20], ebp
test byte [ebp + 0x1c], 0x10
je 0x4aef44
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 4]
shr ecx, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jmp 0x4aef48
mov ecx, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
jle 0x4aef6d
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + edx*4]
add ebp, dword [eax + 4]
inc edx
cmp edx, ecx
jl 0x4aef56
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x14], ebp
jmp 0x4aef70
mov ecx, dword [edi + 0x1c]
mov ebp, dword [esp + 0x24]
mov edx, dword [edi + 0x58]
lea eax, [edx + 1]
mov dword [edi + 0x58], eax
cmp edx, ecx
jge 0x4af1b4
cmp byte [esp + 0x13], 2
jne 0x4aef9c
mov eax, dword [edi + 4]
imul ecx, edx, 0x14
cmp byte [ecx + eax], 0x96
mov ecx, dword [esp + 0x14]
jne 0x4aef74
cmp dword [ebp + 0xe0], 0
je 0x4aefc9
push 9
pop eax
push eax
mov dword [edi + 0x5c], eax
call fcn.00498e07
push eax
push 0x4e5400
lea eax, [edi + 0x38]
push ebp
push eax
call fcn.004a5f3c
add esp, 0x14
jmp 0x4af1bb
cmp edx, dword [edi + 0x1c]
jge 0x4aefd6
imul ebp, edx, 0x14
add ebp, dword [edi + 4]
jmp 0x4aeffb
mov ebp, dword [esp + 0x18]
sub edx, dword [edi + 0x1c]
xor ecx, ecx
mov eax, dword [ebp]
jmp 0x4aefeb
sub edx, eax
inc ecx
mov eax, dword [ebp + ecx*4]
mov eax, dword [eax + 4]
cmp edx, eax
jge 0x4aefe4
mov eax, dword [ebp + ecx*4]
imul ebp, edx, 0x14
add ebp, dword [eax]
push 4
pop ecx
cmp byte [edi + 0x61], bl
jne 0x4af0b6
mov eax, edx
mov word [esi + 0x1c], cx
cdq
mov dword [esi + 0x10], eax
mov eax, 0xa02
mov byte [esi + 0x1e], bl
mov dword [esi + 0x14], edx
mov word [esi + 0x44], ax
movzx eax, byte [ebp]
mov eax, dword [eax*4 + 0x4e4138]
push eax
mov dword [esi + 0x2c], eax
call fcn.004a6b98
mov dword [esi + 0x40], eax
mov byte [esi + 0x46], 3
mov byte [esi + 0x47], bl
add esi, 0x50
cmp byte [ebp + 1], 0xee
pop ecx
jne 0x4af0b3
mov eax, dword [esp + 0x1c]
xor ecx, ecx
lea edx, [eax*4 + 4]
test eax, eax
jle 0x4af075
mov edx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
cmp dword [edx + ecx*4], edi
je 0x4af06a
inc ecx
cmp ecx, eax
jl 0x4af060
mov edi, dword [esp + 0x2c]
lea edx, [eax*4 + 4]
cmp ecx, eax
jne 0x4af0b3
push ebx
push edx
push dword [esp + 0x28]
call fcn.004af685
add esp, 0xc
push 4
test eax, eax
jne 0x4af0b5
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx + 4]
mov dword [ecx + edi*4], eax
lea eax, [edi*4 + 4]
or word [edx + 0x1c], 0x10
mov edi, dword [esp + 0x30]
mov dword [edx + 0x18], eax
jmp 0x4af0b5
push 4
pop ecx
mov word [esi + 0x1c], cx
mov eax, dword [ebp + 4]
mov byte [esi + 0x1e], bl
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov word [esi + 0x44], cx
mov eax, dword [ebp + 8]
cdq
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov byte [esi + 0x46], bl
mov word [esi + 0x6c], cx
mov eax, dword [ebp + 0xc]
cdq
push 0
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov byte [esi + 0x6e], bl
add esi, 0x78
push 0x20
push esi
call fcn.004af685
add esp, 0xc
test eax, eax
jne 0x4af1bb
push 0x20
push dword [esi + 4]
mov eax, 0x602
push ebp
mov word [esi + 0x1c], ax
call fcn.00484b8d
add esp, 0xc
cmp eax, dword [esi + 4]
je 0x4af12e
push 0
push ebx
push 0xffffffffffffffff
push eax
push esi
call fcn.004afb12
add esp, 0x14
jmp 0x4af13d
push dword [esi + 4]
call fcn.004a6b98
pop ecx
mov dword [esi + 0x18], eax
mov byte [esi + 0x1f], bl
mov byte [esi + 0x1e], 3
add esi, 0x28
push 2
pop ecx
cmp byte [edi + 0x61], bl
jne 0x4af196
push 0
push 4
push esi
call fcn.004af685
add esp, 0xc
test eax, eax
jne 0x4af1bb
mov eax, 0x602
mov dword [esi + 0x18], 2
mov word [esi + 0x1c], ax
movzx eax, byte [ebp + 3]
push eax
push str._.2x
push dword [esi + 4]
push 3
call fcn.0047b458
add esp, 0x10
mov byte [esi + 0x1e], 3
mov byte [esi + 0x1f], bl
mov word [esi + 0x44], bx
mov byte [esi + 0x46], 5
push 2
pop ecx
movzx eax, byte [edi + 0x61]
dec ax
sub cx, ax
mov eax, dword [edi + 8]
shl cx, 2
add eax, 0x28
mov word [edi + 0x30], cx
mov dword [edi + 0x14], eax
push 0x64
jmp 0x4af1b6
push 0x65
and dword [edi + 0x5c], 0
pop ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret