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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x78], eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
sar eax, 3
imul edx, eax, 0xaaaaaaab
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x4c], eax
mov eax, edx
lea edx, [esi + esi]
add edx, 1
cmp edx, eax
jae 0x4ae968
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], ebx
jmp 0x4ae861
cmp esi, ecx
sbb eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x44]
mov ebx, ecx
jge 0x4ae960
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
mov ecx, edi
call fcn.004ae9d0
sub esp, 8
lea edx, [esi + esi]
add edx, 1
mov eax, dword [esp + 0x5c]
cmp edx, eax
mov ecx, dword [esp + 0x20]
jae 0x4ae968
mov dword [esp + 0x28], esi
lea esi, [edx + 1]
mov edi, dword [edi + 4]
cmp esi, eax
mov dword [esp + 0x30], edi
jae 0x4ae906
lea ebx, [edx + edx*2]
mov eax, dword [edi + ebx*8 + 4]
mov dword [esp + 0x24], eax
lea ecx, [esi + esi*2]
mov eax, dword [edi + ecx*8 + 4]
mov dword [esp + 0x58], eax
xor eax, dword [esp + 0x24]
mov dword [esp + 0x40], ebx
mov ebx, dword [edi + ebx*8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + ecx*8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
xor ecx, ebx
or ecx, eax
jne 0x4ae8e0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + eax*8 + 8]
mov eax, dword [esp + 0x3c]
mov eax, dword [edi + eax*8 + 8]
cmp ecx, eax
jne 0x4ae8f9
mov eax, dword [esp + 0x3c]
mov eax, dword [edi + eax*8 + 0x10]
mov ebx, dword [esp + 0x40]
cmp eax, dword [edi + ebx*8 + 0x10]
jmp 0x4ae8fb
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
sbb eax, dword [esp + 0x24]
setl al
mov edi, dword [esp + 0x30]
jmp 0x4ae8fe
cmp eax, ecx
setle al
mov ecx, dword [esp + 0x20]
test al, al
jne 0x4ae908
mov esi, edx
mov dword [esp + 0x24], esi
lea edx, [esi + esi*2]
mov esi, dword [edi + edx*8]
mov eax, dword [edi + edx*8 + 4]
mov ebx, eax
xor ebx, ecx
mov edi, esi
mov ecx, dword [esp + 0x2c]
xor edi, ecx
or edi, ebx
jne 0x4ae820
mov esi, dword [esp + 0x30]
mov eax, dword [esi + edx*8 + 8]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov edi, dword [esp + 0x44]
jne 0x4ae950
mov eax, dword [esp + 0x34]
cmp dword [esi + edx*8 + 0x10], eax
jmp 0x4ae952
cmp eax, ecx
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
jle 0x4ae836
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x14], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, edi
call fcn.004aeb40
sub esp, 0x1c
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c