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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ae971
sub esp, 0x64
call fcn.0040b960
mov eax, dword [esp]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], 0x16
mov dword [esp + 8], 0
call fcn.004ae980
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
test eax, eax
jne 0x4ae450
mov dword [esp], 0
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004428f0
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x4fa3e7]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.00484980
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
xor esi, esi
xor edi, edi
jmp 0x4ae4a1
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
add esp, 0x64
ret
mov ebp, dword [esp + 0x3c]
inc ebp
mov esi, ebx
mov edi, ecx
mov ecx, dword [esp + 0x24]
mov ebx, ebp
mov ebp, edx
mov edx, eax
mov eax, dword [esp + 0x40]
cmp ebx, ecx
jge 0x4ae935
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], edi
lea ecx, [eax + ebx*8]
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], ecx
nop
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ebp, [0x4fa3a7]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 2
call fcn.00484980
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], 2
je 0x4ae6b6
mov eax, dword [esp + 0x30]
cmp eax, 4
jge 0x4ae518
xor ecx, ecx
jmp 0x4ae541
mov eax, dword [esp + 0x50]
mov dword [esp], eax
lea ecx, [0x4fa53d]
mov dword [esp + 4], ecx
mov dword [esp + 8], 4
call fcn.00402f20
movzx eax, byte [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x30]
test cl, cl
jne 0x4ae55a
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
jmp 0x4ae48a
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00484bc0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jbe 0x4ae967
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
nop
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x51d08c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.00484980
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], 2
jge 0x4ae5ce
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
jmp 0x4ae6a9
mov dword [esp + 0x4c], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [0x4fa65e]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
call fcn.00485e20
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x4c]
mov dword [edi + 4], ecx
mov edx, dword [0x5af9a0]
test edx, edx
jne 0x4ae62a
mov dword [edi], eax
jmp 0x4ae62f
call fcn.00452b40
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0x40
call fcn.00466d00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x4ae8a6
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0x40
call fcn.00466d00
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
jne 0x4ae817
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
jmp 0x4ae48a
mov dword [esp + 0x4c], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea ebx, [0x4e7060]
mov dword [esp], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0040e3a0
movzx eax, byte [esp + 0x14]
test al, al
jne 0x4ae73e
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea ebx, [0x4e7060]
mov dword [esp], ebx
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0040e700
mov edi, dword [esp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [0x5af9a0]
test eax, eax
jne 0x4ae733
lea eax, [0x5af860]
mov dword [edi], eax
jmp 0x4ae73e
lea eax, [0x5af860]
call fcn.00452b40
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x38], ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
lea ebp, [0x4e7060]
mov dword [esp], ebp
mov esi, dword [esp + 0x44]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.0040e700
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
inc ebx
cmp edx, ebx
jae 0x4ae7d6
mov dword [esp + 0x54], eax
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x4e69c0]
mov dword [esp + 0x10], eax
call fcn.0043fa70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x54]
mov dword [edi + 8], edx
mov edx, dword [0x5af9a0]
test edx, edx
jne 0x4ae7cb
mov dword [edi], eax
jmp 0x4ae7d0
call fcn.00452b40
mov ebx, ecx
mov ecx, eax
mov eax, edi
mov dword [eax + 4], ebx
lea edx, [ecx + ebx*8 - 4]
mov ebp, dword [esp + 0x38]
mov dword [edx], ebp
mov edx, dword [0x5af9a0]
lea edi, [ecx + ebx*8 - 8]
test edx, edx
jne 0x4ae7f9
mov eax, dword [esp + 0x58]
mov dword [edi], eax
jmp 0x4ae802
mov eax, dword [esp + 0x58]
call fcn.00452b40
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
jmp 0x4ae48a
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test edx, edx
je 0x4ae82e
mov edx, dword [edx + 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
lea eax, [0x4ff0b8]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a7b90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test ecx, ecx
je 0x4ae8bd
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
lea eax, [0x4ff0b8]
mov dword [esp], eax
mov dword [esp + 4], 0x18
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004a7b90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x64
ret
xor eax, eax
mov ecx, eax
call fcn.00452bc0
nop
call fcn.00451710
jmp fcn.004ae390