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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
fild dword [0x1353280]
fmul qword [0x44c3b8]
fcom dword [0x45abd0]
fnstsw ax
test ah, 1
je 0x4085cc
fstp dword [0x45abd0]
mov esp, ebp
pop ebp
ret
fcom dword [0x45abd0]
fnstsw ax
test ah, 0x40
jne 0x408d4b
fld st(0)
fsub dword [0x45abd0]
mov eax, dword [0x13532a0]
mov ecx, dword [0x13532a4]
mov edx, dword [0x13532a8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
fst dword [ebp - 0x14]
fcomp qword [0x44c368]
fnstsw ax
test ah, 0x41
jne 0x408616
mov dword [ebp - 0x14], 0x3d4ccccd
fstp dword [0x45abd0]
lea eax, [ebp - 0x84]
push ebx
sub eax, 0x145ee80
push esi
push edi
mov ebx, 0x145ee8c
mov dword [ebp - 0x30], eax
mov eax, dword [ebx - 0xc]
test eax, eax
je 0x408d26
fld dword [ebx + 0x70]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x41
jne 0x4086b4
fld dword [ebx + 0x34]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
je 0x4086b4
fld dword [ebx]
fcomp qword [0x44c480]
fnstsw ax
test ah, 0x41
jne 0x4086b4
fld dword [ebx]
fsub dword [ebx - 4]
fdiv dword [ebx]
fld st(0)
fmul dword [ebx + 4]
fmul dword [0x44c490]
fcomp dword [0x44c360]
fnstsw ax
test ah, 0x41
jne 0x4086b2
fmul dword [ebx + 0x70]
push 0x3f28f5c3
push 0x3f743958
push 0x3f800000
push ecx
fmul dword [ebx + 4]
lea eax, [ebx + 0x24]
fstp dword [esp]
push eax
call fcn.0041b4b0
add esp, 0x14
jmp 0x4086b4
fstp st(0)
fld dword [ebx + 0x5c]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
jne 0x4086d0
fld dword [ebp - 0x14]
fmul dword [ebx + 0x5c]
fsubr dword [ebx + 0x14]
fstp dword [ebx + 0x14]
lea ecx, [ebx + 0x18]
lea edi, [ebx + 0xc]
push ecx
push edi
call fcn.00438c72
mov edx, dword [ebp - 0x14]
lea esi, [ebx + 0x24]
fstp dword [ebp - 4]
push esi
push edi
push edx
push esi
call fcn.00438cfd
push esi
push 0x4815c0
lea eax, [ebx + 0x78]
push 0x4815c0
lea ecx, [ebp - 0xc8]
push eax
push ecx
call fcn.004127e0
fld dword [ebx + 0x68]
fcomp dword [0x44c308]
mov esi, eax
add esp, 0x2c
mov ecx, 0x11
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
fnstsw ax
test ah, 0x40
jne 0x40881b
fld dword [ebp - 0x7c]
fcomp dword [0x44c470]
fnstsw ax
test ah, 1
je 0x40881b
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x18], edx
lea edx, [ebx + 0xc]
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
fld dword [eax]
fmul dword [ecx]
fld dword [eax + 4]
fmul dword [ecx + 4]
fld dword [eax + 8]
fmul dword [ecx + 8]
fxch st(1)
faddp st(2)
faddp st(1)
fstp dword [ebp - 0x40]
fld dword [ebp - 0x40]
fmul dword [ebx + 0x68]
mov ecx, edx
mov edx, 3
mov eax, dword [ebp - 0x30]
fld st(0)
fmul dword [eax + ecx]
fsubr dword [ecx]
fst dword [ebp - 0x18]
fstp dword [ecx]
fld dword [ebp - 0x18]
fcomp qword [0x44c3a8]
fnstsw ax
test ah, 0x41
jne 0x4087b1
fld dword [ebp - 0x18]
fcomp qword [0x44c3a0]
fnstsw ax
test ah, 1
je 0x4087b1
mov dword [ecx], 0
add ecx, 4
dec edx
jne 0x40877c
lea esi, [ebx + 0x18]
lea edi, [ebx + 0xc]
push esi
push edi
fstp st(0)
call fcn.00438c72
fcom dword [0x44c470]
add esp, 8
fnstsw ax
test ah, 1
je 0x4087e4
fstp st(0)
mov dword [ebx - 0xc], 0
jmp 0x408d26
fcomp dword [ebp - 4]
fnstsw ax
test ah, 0x41
jne 0x4087fc
mov ecx, dword [ebp - 4]
push edi
push ecx
push esi
call fcn.00438f27
add esp, 0xc
fld dword [ebp - 0x6c]
fadd dword [ebp - 0x78]
xor edi, edi
fstp dword [ebx + 0x24]
fld dword [ebp - 0x68]
fadd dword [ebp - 0x74]
fstp dword [ebx + 0x28]
fld dword [ebp - 0x64]
fadd dword [ebp - 0x70]
fstp dword [ebx + 0x2c]
jmp 0x408848
mov eax, dword [ebp - 0x80]
xor edi, edi
cmp eax, edi
jne 0x408d23
cmp dword [ebp - 0x84], edi
jne 0x408d23
fld dword [ebp - 0x7c]
fcomp dword [0x44c470]
fnstsw ax
test ah, 1
jne 0x408d23
fld dword [ebx + 0x38]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
jne 0x408864
fld dword [ebp - 0x14]
fmul dword [ebx + 0x38]
fadd dword [ebx + 0x34]
fstp dword [ebx + 0x34]
lea eax, [ebx + 0x78]
lea esi, [ebx + 0x24]
push eax
push esi
call fcn.00438eb9
fstp dword [ebp - 0x10]
lea edx, [ebp - 0x3c]
push esi
push edx
call fcn.00438eb9
fst dword [ebp - 4]
fcomp dword [0x44c390]
add esp, 0x10
fnstsw ax
test ah, 0x41
jne 0x4088c6
fld dword [ebp - 4]
fcomp dword [0x44c590]
fnstsw ax
test ah, 0x41
jne 0x4088a9
fld dword [0x44c58c]
jmp 0x4088cc
fld dword [ebp - 4]
fsub dword [0x44c390]
fmul dword [0x44c588]
fmul qword [0x44c580]
fadd qword [0x44c428]
jmp 0x4088cc
fld dword [0x44c4c8]
fmul dword [ebx + 0x64]
fstp dword [ebp - 0xc]
fld dword [ebp - 0x10]
fld dword [ebp - 0x14]
fdivr qword [0x44c318]
fdivr qword [0x44c578]
fdivp st(1)
fld dword [ebp - 0xc]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4088f9
fstp dword [ebp - 0xc]
jmp 0x4088fb
fstp st(0)
fld dword [ebp - 0x10]
fmul dword [0x44c574]
fcom dword [ebp - 0xc]
fnstsw ax
test ah, 0x41
jne 0x408913
fstp dword [ebp - 0xc]
jmp 0x408915
fstp st(0)
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x80]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
push eax
push esi
mov dword [ebp - 0x24], edx
call fcn.00438eb9
fst dword [ebp - 0x18]
fcomp dword [0x44c570]
add esp, 8
fnstsw ax
test ah, 1
je 0x408950
mov dword [ebp - 0x20], 0x3f800000
jmp 0x40897c
fld dword [ebp - 0x18]
fsub dword [0x44c570]
fmul dword [0x44c56c]
fadd dword [0x44c470]
fst dword [ebp - 0x20]
fcomp dword [0x44c4a0]
fnstsw ax
test ah, 0x41
jne 0x40897c
mov dword [ebp - 0x20], 0x41200000
fld dword [ebp - 0xc]
fcomp dword [ebp - 0x10]
fnstsw ax
test ah, 0x41
jne 0x40898f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
fld dword [ebp - 0xc]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
je 0x4089a6
mov dword [ebp - 0xc], 0x3f800000
fld dword [ebp - 0xc]
fcomp dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], edx
fnstsw ax
test ah, 0x41
je 0x408cdf
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x18]
push eax
lea edx, [ebp - 0x2c]
push ecx
push edx
call fcn.00438cfd
mov esi, dword [0x1454d8c]
add esp, 0x10
cmp esi, edi
je 0x408cd9
cmp dword [ebx + 0x60], 0x34
jne 0x408b60
fld dword [ebp - 0x1c]
fdiv dword [ebp - 0x10]
fmul dword [ebp - 0x14]
fadd dword [ebx - 4]
fsubr dword [ebx]
fdiv dword [ebx]
fstp dword [ebp - 4]
fld dword [ebx + 0x64]
fmul dword [0x44c394]
fmul dword [ebp - 0x20]
fst dword [ebp - 8]
fcomp qword [0x44c440]
fnstsw ax
test ah, 1
je 0x408a25
mov dword [ebp - 8], 0x3f000000
jmp 0x408a3c
fld dword [ebp - 8]
fcomp dword [0x44c568]
fnstsw ax
test ah, 0x41
jne 0x408a3c
mov dword [ebp - 8], 0x40000000
fld dword [ebp - 0x18]
fcomp dword [0x44c390]
fnstsw ax
test ah, 1
jne 0x408cc0
fld dword [ebx + 0x74]
fcomp dword [0x44c308]
fld dword [ebp - 4]
fnstsw ax
test ah, 0x40
je 0x408aed
fmul qword [0x44c560]
push ecx
fadd qword [0x44c558]
fmul dword [ebp - 8]
fstp dword [esp]
fld dword [ebp - 8]
fmul qword [0x44c558]
push ecx
fstp dword [esp]
fld dword [ebp - 4]
fmul dword [0x44c4a8]
push ecx
fadd dword [0x44c568]
fmul dword [ebp - 8]
fstp dword [esp]
fld dword [ebp - 8]
fadd st(0), st(0)
push ecx
fstp dword [esp]
push edi
push 0x3f800000
push 0x3f800000
call fcn.00422830
fadd qword [0x44c318]
push ecx
lea eax, [ebp - 0x2c]
fmul qword [0x44c440]
fld dword [ebp - 4]
fmul dword [ebx + 0x30]
fmulp st(1)
fstp dword [esp]
push edi
push 0x4815c0
push eax
push 0x400
push 0x6e
call dword [0x48269c]
add esp, 0x34
jmp 0x408cc0
fmul dword [ebx + 0x74]
push ecx
fmul qword [0x44c558]
fadd qword [0x44c380]
fmul dword [ebp - 8]
fstp dword [esp]
fld dword [ebp - 8]
fmul qword [0x44c380]
push ecx
fstp dword [esp]
fld dword [ebp - 4]
fmul dword [ebx + 0x74]
push ecx
mov ecx, dword [ebp - 8]
fadd st(0), st(0)
fadd dword [0x44c470]
fmul dword [ebp - 8]
fstp dword [esp]
push ecx
push edi
push 0x3f800000
push 0x3f800000
call fcn.00422830
fadd qword [0x44c318]
push ecx
lea edx, [ebp - 0x2c]
fmul qword [0x44c440]
fld dword [ebp - 4]
fmul dword [ebx + 0x30]
fmulp st(1)
fstp dword [esp]
push edi
push 0x4815c0
push edx
jmp 0x408ad8
fld dword [ebp - 0x1c]
fdiv dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, dword [0x1454d90]
mov dword [0x1454d8c], eax
mov dword [esi], ecx
mov edx, dword [ebx + 0x60]
mov dword [0x1454d90], esi
mov dword [esi + 0x3c], edx
fmul dword [ebp - 0x14]
fld st(0)
fadd dword [ebx - 4]
fmul qword [0x44c550]
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebx - 8]
mov dword [esi + 0x2c], edi
sub ecx, eax
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
fstp dword [esi + 4]
fadd dword [ebx - 4]
fsubr dword [ebx]
fdiv dword [ebx]
fld dword [ebx + 4]
fsub dword [ebx + 8]
fmulp st(1)
fadd dword [ebx + 8]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
lea edi, [esi + 8]
fstp dword [esi + 0x34]
fld dword [ebx + 0x30]
fdivr qword [0x44c548]
fstp dword [esi + 0x38]
mov edx, dword [ebp - 0x2c]
mov dword [edi], edx
mov eax, dword [ebp - 0x28]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x10], ecx
mov edx, dword [0x4815c0]
mov dword [esi + 0x14], edx
mov eax, dword [0x4815c4]
mov dword [esi + 0x18], eax
mov ecx, dword [0x4815c8]
mov dword [esi + 0x1c], ecx
fld dword [ebx + 0x34]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
jne 0x408cb7
fld dword [ebx + 0x40]
fmul dword [ebx + 0x64]
test byte [ebx + 0x6c], 1
fmul qword [0x44c428]
fadd dword [ebx + 0x3c]
fst dword [ebx + 0x3c]
fld st(0)
fcos
fstp dword [ebp - 4]
fsin
fstp dword [ebp - 8]
je 0x408c65
fld dword [ebp - 4]
fmul dword [ebx + 0x34]
lea edx, [ebx + 0x44]
push edi
push edx
push ecx
fstp dword [esp]
push edi
call fcn.00438cfd
fld dword [ebp - 8]
fmul dword [ebx + 0x34]
add esp, 0x10
lea eax, [ebx + 0x50]
push edi
push eax
push ecx
fstp dword [esp]
push edi
call fcn.00438cfd
add esp, 0x10
test byte [ebx + 0x6c], 2
je 0x408cb7
fld dword [ebp - 4]
fmul dword [ebx + 0x34]
fld dword [ebx + 0x30]
fdivr qword [0x44c318]
lea eax, [esi + 0x14]
lea ecx, [ebx + 0x44]
push eax
push ecx
push ecx
fmulp st(1)
fstp dword [esp]
push eax
call fcn.00438cfd
fld dword [ebp - 8]
fmul dword [ebx + 0x34]
fld dword [ebx + 0x30]
fdivr qword [0x44c318]
add esp, 0x10
lea eax, [esi + 0x14]
lea edx, [ebx + 0x50]
push eax
push edx
push ecx
fmulp st(1)
fstp dword [esp]
push eax
call fcn.00438cfd
add esp, 0x10
mov dword [esi + 0x40], 0
xor edi, edi
fld dword [ebp - 0x1c]
fadd dword [ebp - 0xc]
fst dword [ebp - 0x1c]
fcomp dword [ebp - 0x10]
fnstsw ax
test ah, 0x41
jne 0x4089bd
jmp 0x408cdf
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
fld dword [ebp - 0x1c]
fsub dword [ebp - 0xc]
lea eax, [ebx + 0x24]
lea ecx, [ebx + 0x18]
push eax
push ecx
push ecx
lea esi, [ebx + 0x78]
fstp dword [esp]
push esi
call fcn.00438cfd
fld dword [ebp - 0x14]
fadd dword [ebx - 4]
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x2c]
mov dword [ebx + 0x7c], eax
add esp, 0x10
mov dword [esi], edx
fst dword [ebx - 4]
fcomp dword [ebx]
mov dword [ebx + 0x80], ecx
fnstsw ax
test ah, 0x41
jne 0x408d26
mov dword [ebx - 0xc], edi
mov edx, dword [ebp - 0x30]
add ebx, 0x90
sub edx, 0x90
cmp ebx, 0x1467e8c
mov dword [ebp - 0x30], edx
jl 0x408632
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov esp, ebp
pop ebp
ret