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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 0x36]
and al, 0xf8
cmp al, 0x10
push edi
je 0x6ace8c
or byte [esi + 0x42b], 1
mov ecx, esi
call fcn.00535300
mov ebx, dword [eax + 0x2c]
movsx ecx, byte [ebx + 6]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x7d4]
mov dword [esp + 0x94], ecx
mov ecx, eax
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x7d8]
mov dword [esp + 0x58], ecx
mov ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x7dc]
mov dword [esp + 0x5c], ecx
mov ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x7e0]
mov dword [esp + 0x60], ecx
mov ecx, eax
mov dword [esp + 0x34], eax
mov ax, word [esi + 0x22]
xor edx, edx
cmp ax, 0x1b0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x64], ecx
jne 0x6acf93
mov ecx, dword [esi + 0x618]
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x61c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esi + 0x624]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x628]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x630]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x634]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x63c]
mov dword [esp + 0x50], ecx
mov ecx, dword [esi + 0x640]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x84], ecx
mov ecx, dword [esi + 0x40]
test ch, 0x90
mov edi, dword [esp + 0x9c]
jne 0x6acfb8
mov cl, byte [edi + 0x36]
and cl, 7
cmp cl, 3
je 0x6acfb8
cmp ax, 0xfffe
jne 0x6acfbc
cmp cl, 2
jne 0x6acfbc
mov byte [ebx + 6], 0
mov eax, dword [esi + 0x4c4]
or ebp, 0xffffffff
cmp eax, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
je 0x6acfd9
cmp dword [esi + 0x4c8], edi
jne 0x6ad007
movsx eax, word [ebx + 4]
mov ecx, edi
mov dword [esp + 0x24], eax
mov word [ebx + 4], dx
call fcn.00535300
mov ecx, dword [eax + 0x2c]
movsx ebp, word [ecx + 4]
mov ecx, edi
mov dword [esp + 0x1c], ebp
call fcn.00535300
mov edx, dword [eax + 0x2c]
mov word [edx + 4], 0
mov al, byte [esi + 0x36]
and al, 0xf8
cmp al, 0x60
je 0x6ad069
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x6ad02a
mov ecx, edi
call fcn.0054f560
mov ecx, dword [edi + 0x14]
push ecx
lea ecx, [edi + 4]
call fcn.0054f1b0
mov eax, dword [esp + 0xa0]
mov ebp, dword [edi + 0x14]
mov ebx, dword [esi + 0x14]
push 0
lea edx, [esp + 0x2c]
push edx
push 0xc1bff8
push eax
mov ecx, edi
call fcn.00535300
mov ecx, dword [esp + 0x20]
push eax
push ebp
push ecx
push ebx
call fcn.004185c0
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
add esp, 0x20
mov dword [esp + 0x18], eax
jmp 0x6ad071
mov dword [esp + 0x18], 0
test ebp, ebp
jl 0x6ad083
mov ecx, edi
call fcn.00535300
mov edx, dword [eax + 0x2c]
mov word [edx + 4], bp
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x6ad08f
mov word [ebx + 4], ax
mov al, byte [ebx + 6]
test al, al
jne 0x6ad0a5
mov al, byte [esp + 0x94]
mov byte [ebx + 6], al
jmp 0x6ad378
lea ecx, [esi + 0x8f8]
lea edx, [esi + 0x8e8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0xc1bff8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edx
lea ebp, [esi + 0x72c]
nop
mov ecx, dword [esp + 0x14]
fld dword [esp + ecx*4 + 0x28]
lea ecx, [esp + ecx*4 + 0x28]
fcomp dword [0x870fd0]
fnstsw ax
test ah, 5
jp 0x6ad206
mov eax, dword [esp + 0x10]
fld dword [ecx]
fcomp dword [eax - 0x114]
fnstsw ax
test ah, 5
jp 0x6ad206
mov ecx, dword [ecx]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [edx - 0x114], ecx
lea ebx, [ebp - 8]
push eax
mov ecx, ebx
call fcn.0040fc80
mov eax, dword [esp + 0x20]
mov cl, byte [ebp + 0x1d]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x20], eax
mov byte [edx + esi + 0x574], cl
mov al, byte [edi + 0x36]
and al, 7
cmp al, 2
je 0x6ad147
cmp al, 4
jne 0x6ad1c7
mov eax, dword [esp + 0x10]
push eax
mov ecx, edi
mov dword [eax], edi
call fcn.00571b70
mov eax, dword [edi + 0x14]
test eax, eax
je 0x6ad161
add eax, 0x30
jmp 0x6ad164
lea eax, [edi + 4]
fld dword [ebx]
fsub dword [eax]
fstp dword [esp + 0x88]
mov ecx, dword [esp + 0x88]
fld dword [ebp - 4]
fsub dword [eax + 4]
fstp dword [esp + 0x8c]
fld dword [ebp]
mov edx, dword [esp + 0x8c]
fsub dword [eax + 8]
mov eax, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x90]
mov ecx, dword [esp + 0x90]
mov dword [eax + 8], ecx
mov dl, byte [edi + 0x36]
and dl, 7
cmp dl, 2
jne 0x6ad1c7
mov eax, dword [esp + 0x14]
mov cl, byte [eax + edi + 0x574]
mov byte [eax + esi + 0x574], cl
mov dl, byte [ebp + 0x1b]
mov byte [esi + 0xba], dl
mov al, byte [edi + 0x36]
and al, 7
cmp al, 1
jne 0x6ad206
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x48c], edi
xor ecx, dword [edi + 0x1c]
and ecx, 0x40000000
xor eax, ecx
mov dword [esi + 0x1c], eax
mov edx, dword [edi + 0x1c]
xor edx, eax
mov eax, dword [edi + 0x1c]
and edx, 0x7fffffff
xor edx, eax
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add eax, 0x2c
inc edx
add ecx, 4
add ebp, 0x2c
cmp eax, 0xc1c0a8
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jl 0x6ad0d0
cmp word [esi + 0x22], 0x1b0
jne 0x6ad378
fld dword [esp + 0x38]
fcomp dword [esp + 0x68]
fnstsw ax
test ah, 5
jp 0x6ad25f
fld dword [esp + 0x38]
jmp 0x6ad263
fld dword [esp + 0x68]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 5
jp 0x6ad27c
fld dword [esp + 0x3c]
jmp 0x6ad280
fld dword [esp + 0x6c]
fst dword [esp + 0x3c]
fld dword [esp + 0x40]
fcomp dword [esp + 0x70]
fnstsw ax
test ah, 5
jp 0x6ad299
fld dword [esp + 0x40]
jmp 0x6ad29d
fld dword [esp + 0x70]
fst dword [esp + 0x40]
fld dword [esp + 0x44]
fcomp dword [esp + 0x74]
fnstsw ax
test ah, 5
jp 0x6ad2b6
fld dword [esp + 0x44]
jmp 0x6ad2ba
fld dword [esp + 0x74]
fst dword [esp + 0x44]
fld dword [esp + 0x48]
fcomp dword [esp + 0x78]
fnstsw ax
test ah, 5
jp 0x6ad2d3
fld dword [esp + 0x48]
jmp 0x6ad2d7
fld dword [esp + 0x78]
fst dword [esp + 0x48]
fld dword [esp + 0x4c]
fcomp dword [esp + 0x7c]
fnstsw ax
test ah, 5
jp 0x6ad2f0
fld dword [esp + 0x4c]
jmp 0x6ad2f4
fld dword [esp + 0x7c]
fst dword [esp + 0x4c]
fld dword [esp + 0x50]
fcomp dword [esp + 0x80]
fnstsw ax
test ah, 5
jp 0x6ad310
fld dword [esp + 0x50]
jmp 0x6ad317
fld dword [esp + 0x80]
fst dword [esp + 0x50]
fld dword [esp + 0x54]
fcomp dword [esp + 0x84]
fnstsw ax
test ah, 5
jp 0x6ad333
fld dword [esp + 0x54]
jmp 0x6ad33a
fld dword [esp + 0x84]
mov eax, dword [esp + 0x38]
fst dword [esp + 0x54]
fxch st(6)
mov dword [esi + 0x618], eax
fstp dword [esi + 0x61c]
fxch st(4)
fstp dword [esi + 0x624]
fxch st(2)
fstp dword [esi + 0x628]
fstp dword [esi + 0x630]
fstp dword [esi + 0x634]
fstp dword [esi + 0x63c]
fstp dword [esi + 0x640]
cmp word [esi + 0x22], 0x212
mov eax, dword [esp + 0x18]
jne 0x6ad42f
test eax, eax
jle 0x6ad433
mov cl, byte [edi + 0x36]
and cl, 7
cmp cl, 4
jne 0x6ad42f
cmp word [esi + 0x86c], 0
jne 0x6ad42f
cmp word [esi + 0x86e], 0
jne 0x6ad42f
xor edx, edx
test eax, eax
mov dword [esp + 0x10], edx
jle 0x6ad433
mov ecx, dword [esp + 0xa0]
lea ebp, [eax - 1]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ecx
cmp byte [ecx + 0x20], 0x41
jne 0x6ad41f
cmp edx, ebp
jge 0x6ad415
sub ebp, edx
lea ebx, [ecx + 0x2c]
push ebx
call fcn.0040fc80
dec ebp
mov ecx, ebx
jne 0x6ad3e3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
dec ecx
sub eax, 0x2c
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec eax
dec ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
inc edx
add ecx, 0x2c
cmp edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
jl 0x6ad3d7
test eax, eax
jg 0x6ad43f
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x6ad682
push edi
mov ecx, esi
call fcn.00543490
mov dl, byte [edi + 0x36]
and dl, 7
cmp dl, 1
je 0x6ad45a
push esi
mov ecx, edi
call fcn.00543490
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x6ad47c
mov al, byte [edi + 0x36]
and al, 7
cmp al, 1
je 0x6ad475
cmp al, 4
jne 0x6ad47c
test byte [edi + 0x40], 4
je 0x6ad47c
or dword [esi + 0x1c], 0x1000
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x6ad680
mov al, byte [edi + 0x36]
and al, 7
cmp al, 1
jne 0x6ad680
mov edx, dword [esi + 0x384]
fld dword [edx + 0xb4]
fcomp dword [0x858b50]
fnstsw ax
test ah, 0x41
mov eax, ecx
jne 0x6ad682
mov edx, dword [esp + 0xa0]
xor edi, edi
imul eax, eax, 0x2c
lea ebp, [eax + edx + 0x21]
jmp 0x6ad4d0
fld dword [esi + edi*4 + 0x878]
fdiv dword [esi + edi*4 + 0x888]
fsubr dword [0x858624]
fld dword [0x858624]
fsub st(1)
fmul dword [esi + edi*4 + 0x7e4]
fadd st(1)
fstp dword [esp + 0x20]
fstp st(0)
fld dword [esp + edi*4 + 0x58]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x6ad512
mov eax, dword [esp + edi*4 + 0x58]
mov dword [esp + 0x20], eax
fld dword [esp + 0x20]
fsub dword [esi + edi*4 + 0x7d4]
fmul dword [esi + edi*4 + 0x888]
fcomp dword [0x8d3200]
fnstsw ax
test ah, 0x41
jne 0x6ad676
push edi
lea ecx, [esi + 0x5a0]
call fcn.006c21b0
test eax, eax
jne 0x6ad672
mov ecx, edi
imul ecx, ecx, 0x2c
movzx edx, byte [ecx + esi + 0x747]
lea ebx, [ecx + esi]
push edx
mov ecx, 0xb79538
call fcn.0055e5c0
cmp eax, 4
je 0x6ad672
cmp byte [ebx + 0x747], 0xb2
je 0x6ad672
add ebx, 0x724
push ebx
lea ecx, [ebp - 0x21]
call fcn.0040fc80
fld dword [esp + 0x20]
fsub dword [esi + edi*4 + 0x7d4]
fmul dword [esi + edi*4 + 0x888]
fsub dword [0xc1c214]
fld dword [0x8d31fc]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x6ad5b8
fstp st(0)
fld dword [0x8d31fc]
mov ecx, dword [esi + 0x14]
fld dword [esi + 0x4c]
fmul dword [ecx + 0x18]
fld dword [esi + 0x48]
fmul dword [ecx + 0x14]
faddp st(1)
fld dword [esi + 0x44]
fmul dword [ecx + 0x10]
faddp st(1)
fabs
fcomp dword [0x858c24]
fnstsw ax
test ah, 0x41
jne 0x6ad5e8
fld dword [0x858c24]
jmp 0x6ad600
fld dword [esi + 0x4c]
fmul dword [ecx + 0x18]
fld dword [esi + 0x48]
fmul dword [ecx + 0x14]
faddp st(1)
fld dword [esi + 0x44]
fmul dword [ecx + 0x10]
faddp st(1)
fabs
test edi, edi
fld dword [ebp - 9]
fmul dword [ecx + 0x28]
mov eax, dword [esi + 0x384]
fld dword [ebp - 0x11]
fmul dword [ecx + 0x20]
faddp st(1)
fld dword [ecx + 0x24]
fmul dword [ebp - 0xd]
faddp st(1)
fabs
fmul st(1)
fmul st(2)
fmul dword [0x859f60]
fmul dword [eax + 0xb4]
fstp dword [ebp + 7]
fstp st(0)
fstp st(0)
jne 0x6ad63f
mov byte [ebp], 0xd
jmp 0x6ad657
cmp edi, 1
jne 0x6ad64a
mov byte [ebp], 0xf
jmp 0x6ad657
cmp edi, 2
setne cl
lea ecx, [ecx + ecx + 0xe]
mov byte [ebp], cl
mov eax, dword [esp + 0x18]
cmp eax, 0x1f
mov byte [ebp - 1], 0x3c
mov byte [ebp + 2], 0x3c
jge 0x6ad672
mov ecx, eax
inc ecx
mov dword [esp + 0x18], ecx
add ebp, 0x2c
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, 4
jl 0x6ad4d0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 8