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

Disassembly:
sub esp, 0x10
push ebx
push esi
lea eax, [ecx + 0x4e]
push edi
push ebp
mov esi, ecx
mov edi, dword [esp + 0x24]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0xc]
add eax, 0x4a
nop
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 8]
add eax, 0x10
nop
push 2
push eax
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4aea12
mov word [esp + 0x12], 0xffff
jmp 0x4aea1b
mov ax, word [eax + 0x72]
mov word [esp + 0x12], ax
lea eax, [esp + 0x12]
push 2
push eax
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4aea3c
mov dword [esp + 0x1c], 0xffffffff
jmp 0x4aea43
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x30]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x48]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x49]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x4a]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x4b]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 4]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x35]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x38]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x3c]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
push 4
lea eax, [esi + 0x40]
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x28]
push 2
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x2a]
push 2
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x2c]
push 2
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x2e]
push 2
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x37]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x4c]
push 2
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x44]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x4f]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x34]
push 1
push eax
push edi
call fcn.0045db20
add esp, 0xc
push 1
lea eax, [esi + 0x86]
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x78]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
lea eax, [esi + 0x80]
push 4
push eax
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0x68]
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0x68]
cmp eax, ebx
jle 0x4aec58
mov eax, dword [esi + 0x70]
dec eax
cmp eax, ebx
jge 0x4aec32
lea eax, [ebx*4 + 4]
push eax
call fcn.0052f700
mov dword [esp + 0x18], eax
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x4aec32
mov ecx, dword [esi + 0x70]
cmp ecx, eax
jle 0x4aec19
xor ebp, ebp
mov ecx, dword [esp + 0x14]
lea edx, [ebx + 1]
cmp edx, eax
jle 0x4aec19
mov edx, dword [esi + 0x64]
add ebp, 4
add ecx, 4
inc eax
mov edx, dword [edx + ebp - 4]
mov dword [ecx - 4], edx
mov edx, dword [esi + 0x70]
cmp edx, eax
jg 0x4aebfa
mov eax, dword [esi + 0x64]
push eax
call fcn.0052f720
mov eax, dword [esp + 0x18]
add esp, 4
lea edx, [ebx + 1]
mov dword [esi + 0x64], eax
mov dword [esi + 0x70], edx
mov eax, dword [esi + 0x64]
push 4
mov ecx, dword [eax + ebx*4]
inc ebx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0x68]
cmp eax, ebx
jg 0x4aebc7
mov eax, dword [esi + 0x58]
push 4
xor ebx, ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0x58]
cmp eax, ebx
jle 0x4aed09
mov eax, dword [esi + 0x60]
dec eax
cmp eax, ebx
jge 0x4aece3
lea eax, [ebx*4 + 4]
push eax
call fcn.0052f700
mov dword [esp + 0x18], eax
add esp, 4
xor ecx, ecx
test eax, eax
je 0x4aece3
xor edx, edx
mov eax, dword [esi + 0x60]
cmp eax, ecx
jle 0x4aecca
mov eax, dword [esp + 0x14]
lea ebp, [ebx + 1]
cmp ebp, edx
jle 0x4aecca
mov ebp, dword [esi + 0x54]
add ecx, 4
add eax, 4
inc edx
mov ebp, dword [ebp + ecx - 4]
mov dword [eax - 4], ebp
mov ebp, dword [esi + 0x60]
cmp ebp, edx
jg 0x4aecab
mov eax, dword [esi + 0x54]
lea ebp, [ebx + 1]
push eax
call fcn.0052f720
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x54], eax
mov dword [esi + 0x60], ebp
mov eax, dword [esi + 0x54]
push 4
mov ecx, dword [eax + ebx*4]
inc ebx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
call fcn.0045db20
add esp, 0xc
mov eax, dword [esi + 0x58]
cmp eax, ebx
jg 0x4aec7c
push edi
mov ecx, dword [esi + 0x18]
call fcn.0044d6c0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4