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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov al, byte [ebp + 0x1c]
push ebx
push esi
push edi
test al, al
mov byte [esp + 0xf], dl
je 0x4518eb
mov esi, ecx
jmp 0x451925
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 0
fild qword [esp + 0x30]
push 0x40000000
push 0
fadd qword [0x785728]
fstp qword [esp + 0x70]
call fcn.004b9f30
fdivr qword [esp + 0x70]
add esp, 8
fmul qword [0x785718]
call fcn.0076a6b0
mov esi, eax
lea eax, [esp + 0x28]
lea ecx, [ebp + 8]
push eax
push ecx
mov ecx, dword [0x821c8c]
mov dword [esp + 0x1c], esi
call fcn.00697ec0
mov ecx, dword [0x821950]
mov eax, dword [esp + 0x28]
mov edx, dword [0x821954]
add eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
sub eax, esi
add ecx, edx
mov ebx, eax
mov eax, esi
cdq
sub eax, edx
mov dword [esp + 0x2c], ecx
mov edi, eax
push 0
sar edi, 1
sub ecx, edi
lea eax, [esi + esi]
mov dword [esp + 0x80], ecx
push 0
push 0x821950
lea edx, [esp + 0x84]
lea ecx, [esp + 0x64]
mov dword [esp + 0x24], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], esi
call fcn.0041fdf0
mov edx, eax
mov eax, dword [edx]
mov dword [esp + 0x68], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x6c], ecx
mov eax, dword [edx + 8]
test eax, eax
mov ecx, dword [edx + 0xc]
jle 0x451d34
test ecx, ecx
jle 0x451d34
mov al, byte [ebp + 0x16]
mov dx, word [ebp + 0x14]
mov byte [esp + 0x22], al
mov al, byte [ebp + 0x18]
test al, al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov word [esp + 0x20], dx
je 0x451a03
lea ecx, [esp + 0x10]
push ecx
push 0x32
lea ecx, [esp + 0x28]
call fcn.006341c0
mov edx, dword [0x821c7c]
mov cl, byte [0x83b2d4]
mov ebx, dword [esp + 0x21]
mov eax, dword [edx]
mov edx, dword [esp + 0x22]
and edx, 0xff
and ebx, 0xff
shr edx, cl
mov ecx, dword [0x83b2d0]
shl edx, cl
mov cl, byte [0x83b2dc]
shr ebx, cl
mov ecx, dword [0x83b2d8]
shl ebx, cl
mov cl, byte [0x83b2cc]
or edx, ebx
mov ebx, dword [esp + 0x20]
and ebx, 0xff
shr ebx, cl
mov ecx, dword [0x83b2c8]
shl ebx, cl
or edx, ebx
push edx
mov edx, dword [0x821950]
sub esp, 0x10
mov ecx, esp
push edi
push esi
mov dword [ecx], edx
mov edx, dword [0x821954]
mov dword [ecx + 4], edx
mov edx, dword [0x821958]
mov dword [ecx + 8], edx
mov edx, dword [0x82195c]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [0x821c7c]
push edx
call dword [eax + 0x20]
mov eax, dword [0x821c7c]
mov cl, byte [0x83b2d4]
mov ebx, dword [esp + 0x21]
mov edx, dword [eax]
mov eax, dword [esp + 0x22]
and eax, 0xff
and ebx, 0xff
shr eax, cl
mov ecx, dword [0x83b2d0]
shl eax, cl
mov cl, byte [0x83b2dc]
shr ebx, cl
mov ecx, dword [0x83b2d8]
shl ebx, cl
mov cl, byte [0x83b2cc]
or eax, ebx
mov ebx, dword [esp + 0x20]
and ebx, 0xff
shr ebx, cl
mov ecx, dword [0x83b2c8]
shl ebx, cl
or eax, ebx
push eax
mov eax, dword [0x821950]
sub esp, 0x10
dec edi
mov ecx, esp
dec esi
push edi
push esi
mov dword [ecx], eax
mov eax, dword [0x821954]
mov dword [ecx + 4], eax
mov eax, dword [0x821958]
mov dword [ecx + 8], eax
mov eax, dword [0x82195c]
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [0x821c7c]
push eax
call dword [edx + 0x20]
mov al, byte [esp + 0xf]
test al, al
je 0x451d34
fild dword [esp + 0x14]
mov dword [esp + 0x14], 0
mov ebx, 0x7ba608
fstp qword [esp + 0x38]
fild dword [esp + 0x18]
fstp qword [esp + 0x30]
mov ecx, dword [0xa2894c]
mov edx, dword [esp + 0x14]
add ecx, edx
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fmul qword [0x788170]
fld st(0)
fmul qword [0x788168]
call fcn.0076a6b0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fmul qword [0x7879b8]
fsubr st(1)
fstp qword [esp + 0x18]
fstp st(0)
fld qword [esp + 0x18]
fsub qword [0x786630]
fabs
fcomp qword [0x787528]
fnstsw ax
test ah, 1
je 0x451bcb
fld qword [esp + 0x30]
fchs
call fcn.0076a6b0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea esi, [ecx + eax]
mov eax, edx
jmp 0x451cb9
fld qword [esp + 0x18]
fsub qword [0x788160]
fabs
fcomp qword [0x787528]
fnstsw ax
test ah, 1
je 0x451bea
fld qword [esp + 0x30]
jmp 0x451bb4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004ba040
fld qword [esp + 0x38]
fmul qword [esp + 0x38]
fstp qword [esp + 0x50]
fld qword [esp + 0x40]
fmul qword [esp + 0x40]
fstp qword [esp + 0x48]
fld st(0)
fmul st(1)
fdiv qword [esp + 0x50]
fld qword [0x785708]
fdiv qword [esp + 0x48]
faddp st(1)
fdivr qword [0x785708]
fstp qword [esp]
fstp st(0)
call fcn.004b9f30
fst qword [esp + 0x58]
fld st(0)
fmul st(1)
fdiv qword [esp + 0x48]
fsubr qword [0x785708]
fmul qword [esp + 0x50]
fstp qword [esp]
fstp st(0)
call fcn.004b9f30
fld qword [esp + 0x20]
fcomp qword [0x786630]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x451c82
fld qword [esp + 0x18]
fcomp qword [0x788160]
fnstsw ax
test ah, 1
je 0x451c82
fld qword [esp + 0x50]
fchs
jmp 0x451c86
fld qword [esp + 0x50]
fld qword [esp + 0x18]
fcomp qword [0x788158]
fnstsw ax
test ah, 1
je 0x451c9d
fxch st(1)
fchs
fxch st(1)
call fcn.0076a6b0
mov esi, eax
call fcn.0076a6b0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edi, [esi + edx]
lea esi, [ecx + eax]
mov eax, edi
mov edi, dword [0x821954]
sub eax, dword [0x821950]
fld qword [ebx]
sub ecx, edi
mov dword [esp + 0x58], eax
mov eax, dword [0x821950]
mov dword [esp + 0x6c], ecx
mov ecx, dword [0x821c7c]
sub edx, eax
push ecx
lea eax, [ebp + 0x14]
sub esi, edi
mov dword [esp + 0x6c], edx
fstp dword [esp]
push 1
push 1
push 1
push 0
push 0xfffffe0c
push 0xfffffe0c
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x80], esi
mov edx, dword [ecx]
push eax
push 0x821950
call dword [edx + 0x3c]
mov edx, dword [esp + 0x14]
add ebx, 8
inc edx
cmp ebx, 0x7ba628
mov dword [esp + 0x14], edx
jl 0x451b58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18