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

Disassembly:
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, dword [esp + 0xc0]
push esi
call fcn.004a6f70
add esp, 4
test eax, eax
je 0x4aeb5b
push esi
call fcn.004a6ef0
add esp, 4
test eax, eax
jne 0x4aeb5b
mov ebp, dword [0x1180458]
lea eax, [esi + esi*2]
shl eax, 4
mov esi, dword [ebp + 0xd4]
xor ebx, ebx
add esi, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], esi
mov ecx, dword [esi + 4]
test ecx, ecx
jle 0x4aeb5b
push edi
mov edx, dword [esi + 8]
mov eax, dword [ebp + 0xcc]
add edx, ebx
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0xc4]
lea edx, [eax + edx*8]
mov dword [esp + 0x30], edx
test byte [edx + 4], 4
je 0x4aeb4a
mov eax, dword [edx + 8]
xor edi, edi
test eax, eax
mov dword [esp + 0x2c], edi
jle 0x4aeb4a
mov eax, dword [edx + 0xc]
mov ebx, dword [ebp + 0xbc]
add eax, edi
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x20], eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x38], eax
jle 0x4aeb36
mov ecx, dword [esi + 8]
mov edx, dword [ebp + 0xcc]
add ecx, eax
mov eax, dword [edx + ecx*4]
mov ecx, dword [ebp + 0xc4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov dword [esp + 0x40], edi
lea eax, [edi + edi*2]
lea ecx, [ecx + eax*8]
mov dword [esp + 0x48], ecx
test byte [ecx + 4], 4
jne 0x4aeb16
mov eax, dword [ecx + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x44], esi
jle 0x4aeb16
mov eax, dword [esp + 0x20]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
mov dword [esp + 0x24], ebx
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xbc]
add edx, esi
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
cmp ebx, eax
jne 0x4aeafe
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0xc4]
cmp eax, edx
jne 0x4ae729
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xd4]
lea edx, [eax + eax*2]
shl edx, 4
add ecx, edx
mov edx, dword [ebp + 0xdc]
shl eax, 5
test byte [edx + eax + 4], 1
je 0x4ae816
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], esi
jle 0x4aeb16
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0xcc]
lea edx, [ecx + eax*4]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
je 0x4ae7ee
mov edx, dword [ebp + 0xc4]
lea ecx, [eax + eax*2]
mov edi, dword [edx + ecx*8 + 8]
lea ebx, [edx + ecx*8]
xor ecx, ecx
test edi, edi
jle 0x4ae7de
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 0xbc]
lea esi, [esi + eax*4]
mov eax, dword [esi]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x24]
cmp eax, edx
je 0x4ae7be
inc ecx
add esi, 4
cmp ecx, edi
jl 0x4ae7a5
jmp 0x4ae7de
mov eax, dword [ebx + 4]
test al, 1
jne 0x4ae7cf
mov dword [esp + 0x1c], 1
jmp 0x4ae7de
not al
movsx eax, al
and eax, 4
shr eax, 2
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x24]
cmp ecx, edi
jl 0x4ae80a
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
inc eax
add edx, 4
cmp eax, esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edx
jl 0x4ae774
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4aeb16
mov ecx, dword [ebp + 0xb4]
mov esi, dword [esp + 0x20]
mov edi, dword [ebp + 0xa4]
lea eax, [ecx + ebx*8]
xor ecx, ecx
test esi, esi
setl cl
mov edx, dword [eax + ecx*4]
lea edx, [edx + edx*2]
lea esi, [edi + edx*4]
xor edx, edx
test ecx, ecx
sete dl
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + edx*4]
lea eax, [eax + eax*2]
fld dword [edi + eax*4]
fsub dword [esi]
lea edi, [edi + eax*4]
mov eax, dword [ecx]
lea ecx, [esp + 0x54]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0xac]
fstp dword [esp + 0x60]
fld dword [edi + 4]
fsub dword [esi + 4]
lea eax, [eax + edx*4]
lea edx, [esp + 0x60]
push ecx
push edx
push eax
fstp dword [esp + 0x70]
fld dword [edi + 8]
fsub dword [esi + 8]
fstp dword [esp + 0x74]
call fcn.00428590
lea eax, [esp + 0x60]
push eax
call fcn.00428370
fstp st(0)
fld dword [esi]
fadd dword [edi]
push 0xffffffffffffffff
lea eax, [esp + 0x80]
push 4
push eax
fstp dword [esp + 0x2c]
fld dword [esi + 4]
fadd dword [edi + 4]
fstp dword [esp + 0x30]
fld dword [edi + 8]
fadd dword [esi + 8]
fld dword [esp + 0x2c]
fmul qword [0x4d73c0]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul qword [0x4d73c0]
fstp dword [esp + 0x30]
fmul qword [0x4d73c0]
fld dword [esp + 0x70]
fmul dword [0x4d739c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x74]
fmul dword [0x4d739c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], ecx
lea ecx, [esp + 0x2c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x78]
fmul dword [0x4d739c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x8c], edx
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x34]
fsub dword [0x4d73a0]
fstp dword [esp + 0x90]
lea edx, [esp + 0xb8]
push ecx
push edx
call fcn.004affd0
mov ecx, 9
mov esi, eax
lea edi, [esp + 0x9c]
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x4aeb10
lea eax, [esp + 0x80]
push eax
call fcn.004afd90
mov edi, eax
mov eax, dword [esp + 0xc8]
add esp, 4
cmp edi, eax
je 0x4aeb10
push edi
push eax
call fcn.004a7050
add esp, 8
test eax, eax
jne 0x4aeb10
push edi
call fcn.004a6f70
add esp, 4
test eax, eax
jne 0x4ae9b9
push edi
call fcn.004a6ef0
add esp, 4
test eax, eax
je 0x4aeb10
mov ebp, dword [0x1180458]
mov ecx, edi
shl ecx, 5
mov edx, dword [ebp + 0xdc]
test byte [ecx + edx], 2
jne 0x4aeb16
call fcn.004a6940
mov esi, eax
test esi, esi
je 0x4aeb10
mov eax, dword [esp + 0x20]
mov dword [esi], edi
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0x84]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x88]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 7
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
fabs
fmul qword [0x4d8430]
fdiv dword [0x1177088]
fadd qword [0x4d8428]
call fcn.004c2730
push edi
mov word [esi + 0x28], ax
call fcn.004a6ef0
add esp, 4
test eax, eax
jne 0x4aeac5
push edi
call fcn.004a6fb0
add esp, 4
test eax, eax
jne 0x4aeac5
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004a6e40
fcomp dword [0x4d8420]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4aea9b
add word [esi + 0x28], 0x190
jmp 0x4aeac5
fld dword [esp + 0x18]
fsub dword [esp + 0x88]
push ecx
fstp dword [esp]
call fcn.004a6e40
fcomp dword [0x4d8364]
add esp, 4
fnstsw ax
test ah, 0x41
jne 0x4aeac5
add word [esi + 0x28], 0x384
mov ecx, dword [0x1177014]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0x40]
mov edx, dword [ecx + eax*4]
mov dword [esi + 0x2c], edx
mov ecx, dword [0x1177014]
mov dword [ecx + eax*4], esi
mov eax, dword [0x1177064]
mov ebp, dword [0x1180458]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
inc eax
mov dword [0x1177064], eax
mov eax, dword [ecx + 8]
inc esi
cmp esi, eax
mov dword [esp + 0x44], esi
jl 0x4ae6fd
jmp 0x4aeb16
mov ebp, dword [0x1180458]
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
inc eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x38], eax
cmp eax, ecx
jl 0x4ae6aa
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [edx + 8]
inc edi
cmp edi, eax
mov dword [esp + 0x2c], edi
jl 0x4ae68a
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esi + 4]
inc ebx
cmp ebx, ecx
mov dword [esp + 0x3c], ebx
jl 0x4ae64c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret