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

Disassembly:
sub esp, 0x140
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x7d4]
fld dword [esi + 0x4c]
mov ecx, dword [esi + 0x7d8]
mov edx, dword [esi + 0x7dc]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x7e0]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x14]
add eax, 0x10
cmp word [esi + 0x22], 0x1b0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
fmul dword [eax + 8]
fld dword [esi + 0x48]
push edi
fmul dword [eax + 4]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x14], 1
faddp st(1)
fld dword [esi + 0x44]
fmul dword [eax]
faddp st(1)
fabs
fstp dword [esp + 0x74]
jne 0x6afbb2
cmp byte [0xa43088], 1
je 0x6afbb2
mov dword [esp + 0x14], 3
mov ecx, dword [esi + 0x14]
fld dword [ecx + 0x20]
fmul dword [0x858c1c]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
fld dword [ecx + 0x24]
fmul dword [0x858c1c]
fstp dword [esp + 0x30]
fld dword [ecx + 0x28]
mov eax, dword [esp + 0x30]
fmul dword [0x858c1c]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xcc], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x54]
mov edx, dword [esp + 0x34]
fcomp dword [0x870fd0]
mov dword [esp + 0xd4], edx
fnstsw ax
test ah, 5
jp 0x6afc5e
test ecx, ecx
lea eax, [ecx + 0x30]
jne 0x6afc18
lea eax, [esi + 4]
fld dword [esi + 0x724]
fsub dword [eax]
fstp dword [esp + 0x38]
fld dword [esi + 0x728]
fsub dword [eax + 4]
fstp dword [esp + 0x3c]
fld dword [esi + 0x72c]
mov edx, dword [esp + 0x3c]
fsub dword [eax + 8]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
jmp 0x6afc94
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
fld dword [ecx + 0x20]
fmul dword [0x858c1c]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
fld dword [ecx + 0x24]
fmul dword [0x858c1c]
fstp dword [esp + 0x30]
fld dword [ecx + 0x28]
mov edx, dword [esp + 0x30]
fmul dword [0x858c1c]
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x58]
mov eax, dword [esp + 0x34]
fcomp dword [0x870fd0]
mov dword [esp + 0xe0], eax
fnstsw ax
test ah, 5
jp 0x6afd40
test ecx, ecx
lea eax, [ecx + 0x30]
jne 0x6afcf7
lea eax, [esi + 4]
fld dword [esi + 0x750]
fsub dword [eax]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fld dword [esi + 0x754]
fsub dword [eax + 4]
fstp dword [esp + 0x3c]
fld dword [esi + 0x758]
fsub dword [eax + 8]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], eax
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x90], edx
jmp 0x6afd79
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], eax
fld dword [ecx + 0x20]
fmul dword [0x858c1c]
fstp dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
fld dword [ecx + 0x24]
fmul dword [0x858c1c]
fstp dword [esp + 0x30]
fld dword [ecx + 0x28]
mov eax, dword [esp + 0x30]
fmul dword [0x858c1c]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xe4], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
fcomp dword [0x870fd0]
mov dword [esp + 0xec], edx
fnstsw ax
test ah, 5
jp 0x6afe25
test ecx, ecx
lea eax, [ecx + 0x30]
jne 0x6afddc
lea eax, [esi + 4]
fld dword [esi + 0x77c]
fsub dword [eax]
fstp dword [esp + 0x38]
fld dword [esi + 0x780]
fsub dword [eax + 4]
fstp dword [esp + 0x3c]
fld dword [esi + 0x784]
mov edx, dword [esp + 0x3c]
fsub dword [eax + 8]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edx
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x9c], eax
jmp 0x6afe5e
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
fld dword [ecx + 0x20]
fmul dword [0x858c1c]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
fld dword [ecx + 0x24]
fmul dword [0x858c1c]
fstp dword [esp + 0x30]
fld dword [ecx + 0x28]
mov edx, dword [esp + 0x30]
fmul dword [0x858c1c]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x60]
mov eax, dword [esp + 0x34]
fcomp dword [0x870fd0]
mov dword [esp + 0xf8], eax
fnstsw ax
test ah, 5
jp 0x6afef7
test ecx, ecx
je 0x6afec0
add ecx, 0x30
jmp 0x6afec3
lea ecx, [esi + 4]
fld dword [esi + 0x7a8]
fsub dword [ecx]
fstp dword [esp + 0x38]
fld dword [esi + 0x7ac]
fsub dword [ecx + 4]
fstp dword [esp + 0x3c]
fld dword [esi + 0x7b0]
mov edx, dword [esp + 0x3c]
fsub dword [ecx + 8]
mov ecx, dword [esp + 0x38]
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
jmp 0x6aff1b
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa8], eax
lea eax, [esi + 0x734]
xor edi, edi
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], edx
mov dword [esp + 0x28], eax
xor ebx, ebx
mov edi, edi
fld dword [esp + edi + 0x54]
fcomp dword [0x870fd0]
fnstsw ax
test ah, 5
jp 0x6b0082
cmp edi, 4
mov ecx, dword [esi + 0x384]
mov edx, dword [ecx + 0xc0]
mov dword [esp + 0x50], edx
je 0x6aff6f
cmp edi, 0xc
jne 0x6aff7d
fld dword [0x858624]
fsub dword [esp + 0x50]
fstp dword [esp + 0x50]
mov eax, dword [esi + 0x38c]
mov ebp, eax
and ebp, 0x10000
je 0x6affab
test eax, 0x20000
je 0x6affab
test al, 8
je 0x6affab
mov dl, byte [esi + 0x36]
and dl, 0xf8
cmp dl, 0x18
jne 0x6affab
mov dword [esp + 0x50], 0x3f000000
test eax, 0x20000
mov ecx, dword [ecx + 0xac]
mov dword [esp + 0x24], ecx
je 0x6affea
mov edx, dword [esp + 0x74]
push edx
call fcn.00406d10
fcomp dword [0x858fcc]
add esp, 4
fnstsw ax
test ah, 5
jp 0x6affea
test ebp, ebp
je 0x6affe2
fld dword [0x871000]
jmp 0x6b0006
fld dword [0x870ff8]
jmp 0x6b0006
cmp word [esi + 0x22], 0x21b
jne 0x6b000e
fld dword [esi + 0x994]
fabs
fmul dword [0x858c84]
fadd dword [0x858624]
fmul dword [esp + 0x24]
fstp dword [esp + 0x24]
mov al, byte [0x969152]
test al, al
jne 0x6b0054
cmp word [esi + 0x22], 0x21b
je 0x6b0054
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
lea eax, [esp + edi + 0xbc]
push eax
mov eax, dword [esp + edi + 0x58]
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + ebx + 0x8c]
push ecx
lea edx, [esp + ebx + 0xe0]
push edx
push eax
mov ecx, esi
call fcn.00543d60
jmp 0x6b0082
mov edx, dword [esp + 0x50]
mov eax, dword [esp + edi + 0x54]
lea ecx, [esp + edi + 0xbc]
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + ebx + 0x88]
push ecx
lea edx, [esp + ebx + 0xdc]
push edx
push eax
mov ecx, esi
call fcn.00543c90
mov ebp, dword [esp + 0x28]
add ebp, 0x2c
add edi, 4
add ebx, 0xc
cmp edi, 0x10
mov dword [esp + 0x28], ebp
jl 0x6aff40
lea eax, [esi + 0x8f8]
mov dword [esp + 0x78], eax
lea ebp, [esi + 0x8e8]
lea eax, [esi + 0x73c]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x28], eax
xor edi, edi
lea esp, [esp]
sub esp, 0xc
lea ecx, [esp + edi + 0x88]
mov eax, dword [ecx]
mov edx, esp
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
lea edx, [esp + 0x150]
push edx
mov ecx, esi
call fcn.00542ce0
mov edx, dword [eax]
lea ebx, [esp + edi + 0x108]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x6b015d
mov edx, dword [esp + 0x78]
mov ebp, dword [edx]
sub esp, 0xc
mov eax, esp
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
lea eax, [esp + 0x144]
push eax
call fcn.00542ce0
fld dword [ebx]
fsub dword [eax]
mov ebp, dword [esp + 0x70]
fstp dword [ebx]
fld dword [esp + edi + 0x10c]
fsub dword [eax + 4]
fstp dword [esp + edi + 0x10c]
fld dword [esp + edi + 0x110]
fsub dword [eax + 8]
fstp dword [esp + edi + 0x110]
fld dword [ebp - 0x114]
mov ecx, dword [esp + 0x28]
fcomp dword [0x870fd0]
fnstsw ax
test ah, 5
jp 0x6b01b8
fld dword [ecx]
fcomp dword [0x858f9c]
fnstsw ax
test ah, 0x41
jne 0x6b01b8
fld dword [ecx - 8]
lea edx, [esp + edi + 0xcc]
fchs
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x64]
fld dword [ecx - 4]
mov dword [edx], eax
fchs
fstp dword [esp + 0x68]
fld dword [ecx]
mov eax, dword [esp + 0x68]
fchs
mov dword [edx + 4], eax
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
mov dword [edx + 8], eax
add ecx, 0x2c
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x78]
add ebp, 4
add edi, 0xc
add ecx, 0xc
cmp edi, 0x30
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], ecx
jl 0x6b00c0
xor ebx, ebx
xor edi, edi
mov ebp, 0x20000
jmp 0x6b01f0
mov ecx, dword [esi + 0x384]
test dword [esi + 0x38c], ebp
mov edx, dword [ecx + 0xb0]
mov dword [esp + 0x10], edx
je 0x6b023d
fld dword [0x870ff4]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x6b023d
mov eax, dword [esp + 0x74]
push eax
call fcn.00406d10
fcomp dword [0x858fcc]
add esp, 4
fnstsw ax
test ah, 5
jp 0x6b023d
mov ecx, dword [0x870ff4]
mov dword [esp + 0x10], ecx
fld dword [esp + ebx + 0x54]
fcomp dword [0x871258]
fnstsw ax
test ah, 5
jp 0x6b0284
mov al, byte [esi + 0x868]
test al, al
js 0x6b0284
lea edx, [esp + edi + 0x108]
push edx
mov edx, dword [esp + ebx + 0xc0]
lea eax, [esp + edi + 0x80]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + edi + 0xd4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00543e90
add edi, 0xc
add ebx, 4
cmp edi, 0x30
jl 0x6b01f0
mov edi, dword [esp + 0x14]
dec edi
cmp word [esi + 0x22], 0x1b0
mov dword [esp + 0x14], edi
jne 0x6b0423
test edi, edi
jle 0x6b042b
mov ecx, esi
call fcn.00535300
cmp edi, 2
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0xac], 4
mov dword [esp + 0xb0], 7
mov dword [esp + 0xb4], 8
mov dword [esp + 0xb8], 0xb
jne 0x6b0319
mov edx, dword [esi + 0x618]
mov eax, dword [esi + 0x628]
mov ecx, dword [esi + 0x630]
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x640]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
jmp 0x6b0376
cmp edi, 1
jne 0x6b0423
mov eax, dword [esi + 0x61c]
mov ecx, dword [esi + 0x624]
mov edx, dword [esi + 0x634]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x63c]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0xac], 5
mov dword [esp + 0xb0], 6
mov dword [esp + 0xb4], 9
mov dword [esp + 0xb8], 0xa
lea edi, [esp + 0x7c]
lea ebx, [esi + 0x888]
xor ebp, ebp
fld dword [ebx]
mov ecx, dword [esp + 0x70]
fmul dword [esp + ebp + 0x54]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + ebp + 0xac]
shl eax, 5
add eax, edx
fchs
fld dword [eax + 4]
mov edx, dword [eax]
fstp dword [esp + 0x48]
mov ecx, edx
fadd dword [eax + 8]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x48]
mov eax, edi
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x4c]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x14]
push edi
push eax
lea edx, [esp + 0x104]
push edx
call fcn.0059c790
fld dword [ebx - 0x10]
fdiv dword [ebx]
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
add ebp, 4
add esp, 0xc
add edi, 0xc
add ebx, 4
cmp ebp, 0x10
mov dword [ecx + 8], eax
fsubr dword [0x858624]
fld dword [esp + ebp + 0x50]
fsub st(1)
fld dword [0x858624]
fsub st(2)
fdivp st(1)
fstp dword [esp + ebp + 0x50]
fstp st(0)
jl 0x6b0382
mov edi, dword [esp + 0x14]
test edi, edi
jg 0x6afbb2
mov al, byte [esi + 0x36]
mov ecx, dword [0x8d3170]
shr al, 3
test al, al
mov dword [esp + 0x10], 0x3ca3d70a
mov dword [esp + 0x14], ecx
je 0x6b045d
cmp al, 8
je 0x6b045d
fld dword [esp + 0x14]
mov dword [esp + 0x10], 0x3d23d70a
fadd st(0), st(0)
fstp dword [esp + 0x14]
fld dword [esp + 0x74]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x6b067c
mov eax, dword [esi + 0x7d4]
mov ecx, 0x3f800000
cmp eax, ecx
jne 0x6b04b7
cmp dword [esi + 0x7d8], ecx
jne 0x6b04b7
fld dword [esi + 0x7dc]
fcomp dword [0x858624]
fnstsw ax
test ah, 5
jnp 0x6b04ad
fld dword [esi + 0x7e0]
fcomp dword [0x858624]
fnstsw ax
test ah, 5
jp 0x6b04b7
mov dword [esp + 0x10], 0x3f800000
jmp 0x6b0514
fld dword [esp + 0x74]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x6b067c
cmp dword [esi + 0x7dc], ecx
jne 0x6b067c
cmp dword [esi + 0x7e0], ecx
jne 0x6b067c
fld dword [esi + 0x7d4]
fcomp dword [0x858624]
fnstsw ax
test ah, 5
jnp 0x6b050c
fld dword [esi + 0x7d8]
fcomp dword [0x858624]
fnstsw ax
test ah, 5
jp 0x6b067c
mov dword [esp + 0x10], 0xbf800000
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x44]
push edx
add eax, 0x10
push eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x3f800000
call fcn.0059c730
fld dword [esp + 0x28]
mov ecx, dword [esi + 0x14]
fmul dword [ecx + 4]
add esp, 0xc
fld dword [esp + 0x20]
fmul dword [ecx + 8]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [ecx]
faddp st(1)
fabs
fcomp dword [0x858cc8]
fnstsw ax
test ah, 5
jp 0x6b067c
fld dword [esp + 0x14]
movsx edx, word [esi + 0x22]
fmul dword [esi + 0x90]
mov eax, dword [edx*4 + 0xa9b0c8]
mov edx, dword [eax + 0x14]
sub esp, 0xc
fmul dword [esp + 0x1c]
mov eax, esp
sub esp, 0xc
fld st(0)
fmul dword [ecx + 0x20]
fstp dword [esp + 0x7c]
fld st(0)
fmul dword [ecx + 0x24]
fstp dword [esp + 0x80]
fmul dword [ecx + 0x28]
fstp dword [esp + 0x84]
fld dword [edx + 0xc]
fld st(0)
fmul dword [ecx]
fstp dword [esp + 0x5c]
fld st(0)
fmul dword [ecx + 4]
fstp dword [esp + 0x60]
mov edx, dword [esp + 0x60]
fmul dword [ecx + 8]
mov ecx, dword [esp + 0x5c]
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x84]
mov dword [edx + 4], ecx
mov ecx, esi
mov dword [edx + 8], eax
call fcn.00542a50
mov eax, dword [esi + 0x14]
add eax, 0x10
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x104]
push edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x3f800000
call fcn.0059c730
fld dword [esp + 0x20]
fmul dword [esi + 0x8c]
fmul dword [esp + 0x1c]
fld st(0)
fmul dword [eax]
fstp dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
fld st(0)
fmul dword [eax + 4]
fstp dword [esp + 0x54]
mov edx, dword [esp + 0x54]
fmul dword [eax + 8]
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], edx
fstp dword [esp + 0x58]
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.005429f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret