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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ae941
sub esp, 0x64
call fcn.0040b960
mov eax, dword [esp]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov dword [esp + 4], 0x16
mov dword [esp + 8], 0
call fcn.004ae950
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 0x4ae420
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, [0x4fa4e7]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004849b0
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 0x4ae471
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 0x4ae905
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edi
lea ecx, [eax + ebx*8]
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov ecx, dword [ecx + 4]
mov dword [esp + 0x34], ecx
nop
mov dword [esp], edx
mov dword [esp + 4], ecx
lea ebp, [0x4fa4a7]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 2
call fcn.004849b0
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], 2
je 0x4ae686
mov eax, dword [esp + 0x34]
cmp eax, 4
jge 0x4ae4e8
xor ecx, ecx
jmp 0x4ae511
mov eax, dword [esp + 0x50]
mov dword [esp], eax
lea ecx, [0x4fa63d]
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 + 0x34]
test cl, cl
jne 0x4ae52a
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
jmp 0x4ae45a
mov ecx, dword [esp + 0x50]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00484bf0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
jbe 0x4ae937
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, [0x51d194]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004849b0
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x1c], 2
jge 0x4ae59e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
jmp 0x4ae679
mov dword [esp + 0x44], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
lea ecx, [0x4fa75e]
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.00485e50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x44]
mov dword [edi + 4], ecx
mov edx, dword [0x5af9b0]
test edx, edx
jne 0x4ae5fa
mov dword [edi], eax
jmp 0x4ae5ff
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 0x4ae876
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x44]
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 0x4ae7e7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
jmp 0x4ae45a
mov dword [esp + 0x44], eax
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea ebx, [0x4e7200]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
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 0x4ae70e
mov eax, dword [esp + 0x44]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea ebx, [0x4e7200]
mov dword [esp], ebx
mov ebp, dword [esp + 0x4c]
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 [0x5af9b0]
test eax, eax
jne 0x4ae703
lea eax, [0x5af85c]
mov dword [edi], eax
jmp 0x4ae70e
lea eax, [0x5af85c]
call fcn.00452b40
mov eax, dword [esp + 0x44]
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, [0x4e7200]
mov dword [esp], ebp
mov esi, dword [esp + 0x4c]
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 0x4ae7a6
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, [0x4e69e0]
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 [0x5af9b0]
test edx, edx
jne 0x4ae79b
mov dword [edi], eax
jmp 0x4ae7a0
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 [0x5af9b0]
lea edi, [ecx + ebx*8 - 8]
test edx, edx
jne 0x4ae7c9
mov eax, dword [esp + 0x58]
mov dword [edi], eax
jmp 0x4ae7d2
mov eax, dword [esp + 0x58]
call fcn.00452b40
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
jmp 0x4ae45a
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
test edx, edx
je 0x4ae7fe
mov edx, dword [edx + 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
lea eax, [0x4ff1b8]
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.004a7b40
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 0x4ae88d
mov ecx, dword [ecx + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
lea eax, [0x4ff1b8]
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.004a7b40
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 + 0x4c]
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.004ae360