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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov ebp, dword [edi + 0x10]
cmp dword [edi + 0xc], ebp
jbe 0x4ae458
call fcn.0059ec50
mov esi, dword [edi + 0xc]
mov ebx, dword [edi]
cmp esi, dword [edi + 0x10]
jbe 0x4ae467
call fcn.0059ec50
mov eax, dword [edi]
push ebp
push ebx
push esi
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call fcn.004a2630
mov esi, dword [esp + 0x64]
fld dword [esi]
fsub dword [esi + 8]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fabs
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fld qword [0x5e06b0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4ae878
fld dword [esi + 4]
fsub dword [esi + 0xc]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fabs
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fcompp
fnstsw ax
test ah, 5
jnp 0x4ae87a
fldz
mov byte [esp + 0x68], 0
fst dword [esp + 0x10]
mov byte [esp + 0x64], 0
fst dword [esp + 0x14]
mov dword [esp + 0x18], 0
fst dword [esp + 0x28]
fst dword [esp + 0x2c]
jmp 0x4ae4f6
fldz
mov edx, dword [esp + 0x18]
fld dword [esp + 0x60]
mov ebp, dword [esi + edx*8]
fld dword [esp + 0x5c]
mov ebx, dword [esi + edx*8 + 4]
fldz
lea ecx, [esi + edx*8]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebx
cmp edx, 3
jne 0x4ae51f
xor eax, eax
jmp 0x4ae522
lea eax, [edx + 1]
fld dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + eax*8]
fcom st(1)
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esi + eax*8 + 4]
mov dword [esp + 0x24], eax
fnstsw ax
test ah, 1
jne 0x4ae643
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x4ae645
fld dword [esp + 0x34]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x4ae645
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x4ae647
fstp st(2)
push ecx
fstp st(0)
mov ecx, edi
fstp st(0)
call fcn.005620e0
mov edx, dword [esp + 0x24]
fldz
mov eax, dword [esp + 0x20]
fst dword [esp + 0x48]
lea ecx, [esp + 0x48]
fst dword [esp + 0x4c]
push ecx
fst dword [esp + 0x54]
push edx
fstp dword [esp + 0x5c]
fld dword [esp + 0x68]
push eax
push ebx
push ebp
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x78]
fstp dword [esp]
call fcn.004983a0
add esp, 0x1c
test eax, eax
jle 0x4ae5e7
lea ecx, [esp + 0x48]
push ecx
mov ecx, edi
call fcn.005620e0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
jmp 0x4ae710
fld dword [esp + 0x20]
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4ae632
fld dword [esp + 0x5c]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x4ae634
fld dword [esp + 0x24]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x4ae634
fld dword [esp + 0x60]
fcompp
fnstsw ax
test ah, 1
je 0x4ae715
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
jmp 0x4ae710
fstp st(1)
fstp st(0)
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
jmp 0x4ae710
fstp st(0)
fstp st(0)
fxch st(2)
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x40]
fstp dword [esp + 0x44]
cmp edx, 3
jne 0x4ae662
xor eax, eax
jmp 0x4ae665
lea eax, [edx + 1]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esi + eax*8 + 4]
mov eax, dword [esi + eax*8]
push edx
push eax
mov edx, ebx
push edx
mov eax, ebp
push eax
sub esp, 8
fstp dword [esp + 4]
fstp dword [esp]
call fcn.004983a0
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x4ae715
cmp byte [esp + 0x68], 0
mov edx, dword [esp + 0x38]
je 0x4ae6d2
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x60]
mov eax, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x78]
fstp dword [esp]
call fcn.004ae390
add esp, 0x1c
mov byte [esp + 0x68], 0
jmp 0x4ae6e3
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x64], 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.005620e0
cmp ebx, 1
jle 0x4ae715
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.005620e0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jl 0x4ae4f4
cmp byte [esp + 0x68], 0
je 0x4ae73c
cmp byte [esp + 0x64], 0
jne 0x4ae743
mov eax, dword [esi]
mov ecx, dword [esi + 4]
jmp 0x4ae74b
cmp byte [esp + 0x64], 0
je 0x4ae772
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
fld dword [esp + 0x60]
push edi
push ecx
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x78]
fstp dword [esp]
call fcn.004ae390
add esp, 0x1c
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
test ecx, 0xfffffff8
jne 0x4aebb1
push esi
call fcn.00485b90
add esp, 4
test al, al
je 0x4aebb1
fldz
mov ecx, edi
fst dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
push edx
push eax
push 4
call fcn.004c6e70
fldz
mov ecx, dword [edi + 0x10]
fst dword [esp + 0x30]
sub ecx, dword [edi + 0xc]
fstp dword [esp + 0x34]
sar ecx, 3
test ecx, ecx
ja 0x4ae7ce
call fcn.0059ec50
mov edx, dword [esp + 0x30]
fld dword [esp + 0x5c]
mov eax, dword [edi + 0xc]
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
fldz
mov dword [eax], edx
fstp dword [esp + 0x34]
mov dword [eax + 4], ecx
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
sar edx, 3
test edx, edx
ja 0x4ae7fe
call fcn.0059ec50
mov eax, dword [edi + 0xc]
fld dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x60]
mov dword [eax], ecx
fstp dword [esp + 0x34]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
test eax, eax
ja 0x4ae830
call fcn.0059ec50
mov eax, dword [edi + 0xc]
fldz
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x60]
mov dword [eax], ecx
fstp dword [esp + 0x34]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
test eax, eax
ja 0x4ae860
call fcn.0059ec50
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [edi], ecx
mov dword [edi + 4], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
fstp st(0)
fld dword [esi]
fld dword [esi + 8]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae88c
fld dword [esi]
jmp 0x4ae88f
fld dword [esi + 8]
fstp dword [esp + 0x68]
fld dword [esi + 0x10]
fld dword [esi + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae8a7
fld dword [esi + 0x10]
jmp 0x4ae8aa
fld dword [esi + 0x18]
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fld dword [esp + 0x64]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae8d6
fld dword [esi]
fld dword [esi + 8]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae8d1
fld dword [esi]
jmp 0x4ae8ed
fld dword [esi + 8]
jmp 0x4ae8ed
fld dword [esi + 0x10]
fld dword [esi + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae8ea
fld dword [esi + 0x10]
jmp 0x4ae8ed
fld dword [esi + 0x18]
fstp dword [esp + 0x68]
fld dword [esi + 4]
fld dword [esi + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae905
fld dword [esi + 4]
jmp 0x4ae908
fld dword [esi + 0xc]
fstp dword [esp + 0x64]
fld dword [esi + 0x14]
fld dword [esi + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae920
fld dword [esi + 0x14]
jmp 0x4ae923
fld dword [esi + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x64]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae951
fld dword [esi + 4]
fld dword [esi + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae94c
fld dword [esi + 4]
jmp 0x4ae968
fld dword [esi + 0xc]
jmp 0x4ae968
fld dword [esi + 0x14]
fld dword [esi + 0x1c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4ae965
fld dword [esi + 0x14]
jmp 0x4ae968
fld dword [esi + 0x1c]
fstp dword [esp + 0x10]
fld dword [esi]
fld dword [esi + 8]
fcompp
fnstsw ax
test ah, 5
jp 0x4ae97e
fld dword [esi]
jmp 0x4ae981
fld dword [esi + 8]
fstp dword [esp + 0x64]
fld dword [esi + 0x10]
fld dword [esi + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x4ae999
fld dword [esi + 0x10]
jmp 0x4ae99c
fld dword [esi + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x64]
fld dword [esp + 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x4ae9c8
fld dword [esi]
fld dword [esi + 8]
fcompp
fnstsw ax
test ah, 5
jp 0x4ae9c3
fld dword [esi]
jmp 0x4ae9df
fld dword [esi + 8]
jmp 0x4ae9df
fld dword [esi + 0x10]
fld dword [esi + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x4ae9dc
fld dword [esi + 0x10]
jmp 0x4ae9df
fld dword [esi + 0x18]
fstp dword [esp + 0x64]
fld dword [esi + 4]
fld dword [esi + 0xc]
fcompp
fnstsw ax
test ah, 5
jp 0x4ae9f7
fld dword [esi + 4]
jmp 0x4ae9fa
fld dword [esi + 0xc]
fstp dword [esp + 0x1c]
fld dword [esi + 0x14]
fld dword [esi + 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x4aea12
fld dword [esi + 0x14]
jmp 0x4aea15
fld dword [esi + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x4aea43
fld dword [esi + 4]
fld dword [esi + 0xc]
fcompp
fnstsw ax
test ah, 5
jp 0x4aea3e
fld dword [esi + 4]
jmp 0x4aea5a
fld dword [esi + 0xc]
jmp 0x4aea5a
fld dword [esi + 0x14]
fld dword [esi + 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x4aea57
fld dword [esi + 0x14]
jmp 0x4aea5a
fld dword [esi + 0x1c]
fstp dword [esp + 0x18]
fldz
fld dword [esp + 0x68]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4aea73
fstp dword [esp + 0x68]
jmp 0x4aea79
fstp st(0)
fst dword [esp + 0x68]
fld dword [esp + 0x64]
fld dword [esp + 0x5c]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4aea8e
fstp st(0)
jmp 0x4aea90
fstp st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4aeaa7
fstp dword [esp + 0x10]
jmp 0x4aeaad
fstp st(0)
fst dword [esp + 0x10]
fld dword [esp + 0x18]
fld dword [esp + 0x60]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4aeac2
fstp st(0)
jmp 0x4aeac4
fstp st(1)
fstp dword [esp + 0x64]
fst dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
push eax
push ecx
push 4
mov ecx, edi
call fcn.004c6e70
fld dword [esp + 0x68]
mov edx, dword [edi + 0x10]
fstp dword [esp + 0x30]
sub edx, dword [edi + 0xc]
fld dword [esp + 0x10]
fstp dword [esp + 0x34]
sar edx, 3
test edx, edx
ja 0x4aeb05
call fcn.0059ec50
mov eax, dword [edi + 0xc]
fld dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x64]
mov dword [eax], ecx
fstp dword [esp + 0x34]
mov dword [eax + 4], edx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
cmp eax, 1
ja 0x4aeb38
call fcn.0059ec50
mov eax, dword [edi + 0xc]
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x64]
mov dword [eax + 8], ecx
fstp dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
cmp eax, 2
ja 0x4aeb6c
call fcn.0059ec50
mov eax, dword [edi + 0xc]
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x34]
fld dword [esp + 0x10]
mov dword [eax + 0x10], ecx
fstp dword [esp + 0x34]
mov dword [eax + 0x14], edx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
sar eax, 3
cmp eax, 3
ja 0x4aeba0
call fcn.0059ec50
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret