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

Disassembly:
push 0xffffffffffffffff
push 0x568ec1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov eax, dword [0x5af710]
mov edx, dword [esp + 0xfc]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xf8]
push ebx
mov ebx, dword [esp + 0xf8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x104]
push ebp
mov dword [esp + 8], eax
mov eax, dword [ecx]
xor ebp, ebp
cmp eax, ebp
push edi
mov edi, dword [esp + 0xfc]
mov dword [esp + 0x30], edx
je 0x4ae472
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.004a8d40
lea ecx, [esp + 0x14]
mov dword [esp + 0xf8], ebp
call fcn.0050bff9
lea ecx, [esp + 0x14]
mov byte [esp + 0xf8], 1
call fcn.0050c01a
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebp
call fcn.0050c11d
cmp eax, ebp
je 0x4ae170
lea esp, [esp]
mov ecx, eax
call fcn.0054e028
push eax
lea ecx, [esp + 0x40]
call fcn.004a98a0
lea ecx, [esp + 0x3c]
call fcn.004adc70
test eax, eax
je 0x4ae1c4
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
call fcn.0050c125
cmp eax, ebp
jne 0x4ae140
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
lea eax, [esp + 0x38]
push eax
push 1
push 0x30
lea ecx, [esp + 0x28]
mov byte [esp + 0x104], 2
call fcn.0045d7d0
test eax, eax
jne 0x4ae327
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x24]
je 0x4ae327
mov ebp, 0x10
mov eax, dword [esi]
cmp dword [eax + 0x50], ebp
jb 0x4ae2fc
mov eax, dword [eax + 0x3c]
jmp 0x4ae2ff
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x64]
mov ebp, 0x10
cmp eax, ebp
jae 0x4ae1d9
lea edx, [esp + 0x64]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae1e0
sub eax, esi
push eax
push edx
mov ecx, edi
call fcn.00404640
cmp dword [esp + 0x94], ebp
mov edx, dword [esp + 0x80]
jae 0x4ae209
lea edx, [esp + 0x80]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae210
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.00404640
cmp dword [esp + 0xb0], ebp
mov edx, dword [esp + 0x9c]
jae 0x4ae239
lea edx, [esp + 0x9c]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae240
mov ecx, dword [esp + 0x30]
sub eax, esi
push eax
push edx
call fcn.00404640
cmp dword [esp + 0xcc], ebp
mov edx, dword [esp + 0xb8]
jae 0x4ae26b
lea edx, [esp + 0xb8]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae270
mov ecx, dword [esp + 0x34]
sub eax, esi
push eax
push edx
call fcn.00404640
cmp dword [esp + 0xe8], ebp
mov edx, dword [esp + 0xd4]
jae 0x4ae29b
lea edx, [esp + 0xd4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae2a0
mov ecx, dword [esp + 0x10]
sub eax, esi
push eax
push edx
call fcn.00404640
lea ecx, [esp + 0x14]
mov byte [esp + 0xf8], 0
call fcn.0050c006
lea ecx, [esp + 0x3c]
call fcn.004a8da0
mov eax, 1
pop esi
mov ecx, dword [esp + 0xec]
pop edi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xe0]
pop ebx
xor ecx, esp
call fcn.0053aaae
add esp, 0xec
ret 0x14
add eax, 0x3c
push eax
lea ecx, [esp + 0x40]
call fcn.004a98a0
lea ecx, [esp + 0x3c]
call fcn.004adc70
test eax, eax
je 0x4ae381
mov eax, dword [esp + 0x24]
add esi, 4
cmp esi, eax
jne 0x4ae1b1
xor ebp, ebp
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
push ecx
push edx
push eax
call fcn.0045d4f0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, ebp
je 0x4ae354
push eax
call fcn.0055047a
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov byte [esp + 0xf8], 0
call fcn.0050c006
lea ecx, [esp + 0x3c]
call fcn.004a8da0
xor eax, eax
jmp 0x4ae2d3
cmp dword [esp + 0x78], ebp
mov edx, dword [esp + 0x64]
jae 0x4ae38f
lea edx, [esp + 0x64]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae394
sub eax, esi
push eax
push edx
mov ecx, edi
call fcn.00404640
cmp dword [esp + 0x94], ebp
mov edx, dword [esp + 0x80]
jae 0x4ae3bd
lea edx, [esp + 0x80]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae3c2
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.00404640
cmp dword [esp + 0xb0], ebp
mov edx, dword [esp + 0x9c]
jae 0x4ae3eb
lea edx, [esp + 0x9c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae3f0
mov ecx, dword [esp + 0x30]
sub eax, esi
push eax
push edx
call fcn.00404640
cmp dword [esp + 0xcc], ebp
mov edx, dword [esp + 0xb8]
jae 0x4ae41b
lea edx, [esp + 0xb8]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae420
mov ecx, dword [esp + 0x34]
sub eax, esi
push eax
push edx
call fcn.00404640
cmp dword [esp + 0xe8], ebp
mov edx, dword [esp + 0xd4]
jae 0x4ae44b
lea edx, [esp + 0xd4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ae450
mov ecx, dword [esp + 0x10]
sub eax, esi
push eax
push edx
call fcn.00404640
lea ecx, [esp + 0x1c]
call fcn.0048bcef
jmp 0x4ae2b4
or eax, 0xffffffff
jmp 0x4ae2d4