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

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x6c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x45a903
mov esi, dword [eax + 8]
test esi, esi
jl 0x45a69f
cmp esi, 0x10
jle 0x45a6ac
xor eax, eax
test esi, esi
setl al
dec eax
and eax, 0x10
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
fild qword [esp + 0x14]
mov edx, dword [0x499790]
mov ecx, dword [0x49978c]
mov eax, dword [0x499794]
mov dword [esp + 0x20], edx
fdivr dword [0x46c38c]
mov edx, dword [0x499780]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x49977c]
mov dword [esp + 0x24], eax
mov eax, dword [0x499784]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x34], ecx
mov ecx, dword [0x499788]
mov dword [esp + 0x3c], eax
mov al, byte [esp + 0x84]
mov dword [esp + 0x14], ecx
test edx, edx
fstp dword [esp + 0x10]
je 0x45abd8
test al, 4
je 0x45abd8
mov eax, dword [0x499778]
test esi, esi
jbe 0x45aa6f
test eax, eax
je 0x45a90a
mov ecx, dword [esp + 0x80]
test ecx, ecx
jbe 0x45af91
mov eax, dword [esp + 0x8c]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x88]
sub eax, ebp
lea edi, [edx + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], ecx
fld dword [esp + 0x1c]
fmul dword [edi]
mov ecx, dword [edi]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x24]
sub esp, 0xc
fstp dword [esp + 0x68]
fld dword [esp + 0x30]
fmul dword [edi]
mov edx, esp
mov dword [edx], eax
mov eax, dword [esp + 0x34]
fstp dword [esp + 0x6c]
fld dword [esp + 0x34]
fmul dword [edi]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0xa8]
push ecx
lea ecx, [esp + 0x78]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x28]
fstp dword [esp + 0x74]
lea eax, [esp + 0x48]
push edx
push eax
push ecx
call fcn.0045b0f0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 8]
add esp, 0x20
xor ebx, ebx
test esi, esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jbe 0x45a871
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x80]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + ebx*4]
lea ecx, [edx + ebp]
push ecx
mov ecx, dword [esp + 0x9c]
push ecx
lea edx, [esp + 0x78]
push eax
push edx
call fcn.00450220
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 8]
fld dword [esp + 0x50]
fadd dword [esp + 0x38]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
add esp, 0x10
inc ebx
cmp ebx, esi
fstp dword [esp + 0x28]
fld dword [esp + 0x44]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x48]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
jb 0x45a806
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fld dword [esp + 0x30]
fmul dword [esp + 0x10]
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x8c]
add ebx, 0xc
add edi, 0x10
add ebp, 0x10
dec eax
fstp dword [esp + 0x30]
fld dword [esp + 0x4c]
fadd dword [edi - 0x1c]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x8c], eax
fadd st(2)
fadd dword [esp + 0x58]
fstp dword [ebp - 0x10]
fld dword [esp + 0x50]
fadd dword [edi - 0x18]
fadd st(1)
fadd dword [esp + 0x5c]
fstp dword [ebp - 0xc]
fstp st(0)
fstp st(0)
fld dword [esp + 0x54]
fadd dword [edi - 0x14]
mov dword [ebp - 4], 0x3f800000
fadd dword [esp + 0x30]
fadd dword [esp + 0x60]
fstp dword [ebp - 8]
jne 0x45a77b
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
xor esi, esi
jmp 0x45a6ac
mov eax, dword [esp + 0x80]
test eax, eax
jbe 0x45af91
mov ecx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x98], ecx
mov ecx, dword [esp + 0x88]
sub ecx, ebp
lea ebx, [edx + 0xc]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x8c], eax
fld dword [esp + 0x1c]
fmul dword [ebx]
xor edi, edi
mov dword [esp + 0x28], 0
test esi, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
fstp dword [esp + 0x4c]
fld dword [esp + 0x20]
fmul dword [ebx]
fstp dword [esp + 0x50]
fld dword [esp + 0x24]
fmul dword [ebx]
fstp dword [esp + 0x54]
jbe 0x45a9ef
mov edx, dword [esp + 0x94]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x80]
mov ecx, dword [eax + edi*4]
lea eax, [edx + ebp]
push eax
mov eax, dword [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x7c]
push ecx
call fcn.00450220
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 8]
fld dword [esp + 0x68]
fadd dword [esp + 0x38]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
add esp, 0x10
inc edi
cmp edi, esi
fstp dword [esp + 0x28]
fld dword [esp + 0x5c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x60]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
jb 0x45a984
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fld dword [esp + 0x30]
fmul dword [esp + 0x10]
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x8c]
add edi, 0xc
add ebx, 0x10
add ebp, 0x10
dec eax
fstp dword [esp + 0x30]
fxch st(1)
fadd dword [ebx - 0x1c]
mov dword [esp + 0x98], edi
mov dword [esp + 0x8c], eax
fadd dword [esp + 0x4c]
fstp dword [ebp - 0x10]
fadd dword [ebx - 0x18]
fadd dword [esp + 0x50]
fstp dword [ebp - 0xc]
fld dword [esp + 0x30]
fadd dword [ebx - 0x14]
mov dword [ebp - 4], 0x3f800000
fadd dword [esp + 0x54]
fstp dword [ebp - 8]
jne 0x45a948
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
test eax, eax
je 0x45ab6c
mov eax, dword [esp + 0x80]
test eax, eax
jbe 0x45af91
mov ebx, dword [esp + 0x98]
mov ebp, dword [esp + 0x8c]
lea esi, [edx + 0xc]
mov dword [esp + 0x80], eax
lea edi, [ebx + 8]
sub ebx, edx
fld dword [esp + 0x1c]
fmul dword [esi]
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
sub esp, 0xc
fstp dword [esp + 0x5c]
fld dword [esp + 0x30]
fmul dword [esi]
mov ecx, esp
push ebp
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
fstp dword [esp + 0x64]
fld dword [esp + 0x38]
fmul dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
push eax
mov dword [ecx + 8], edx
lea ecx, [esp + 0x4c]
fstp dword [esp + 0x6c]
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.0045b0f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov eax, dword [eax + 8]
fld dword [esp + 0x78]
fadd dword [esi - 0xc]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xa0]
add esp, 0x20
fadd dword [esp + 0x4c]
add esi, 0x10
add edi, 0x10
add ebp, 0xc
dec eax
mov dword [esp + 0x80], eax
fstp dword [edi - 0x18]
fld dword [esp + 0x5c]
fadd dword [esi - 0x18]
fadd dword [esp + 0x50]
fstp dword [edi - 0x14]
fld dword [esp + 0x60]
fadd dword [esi - 0x14]
mov dword [ebx + esi - 0x10], 0x3f800000
fadd dword [esp + 0x54]
fstp dword [edi - 0x10]
jne 0x45aaa3
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov edi, dword [esp + 0x80]
test edi, edi
jbe 0x45af91
mov esi, dword [esp + 0x98]
lea eax, [edx + 0xc]
lea ecx, [esi + 8]
sub esi, edx
mov edx, edi
fld dword [esp + 0x1c]
fmul dword [eax]
fld dword [esp + 0x20]
fmul dword [eax]
fld dword [esp + 0x24]
fmul dword [eax]
add eax, 0x10
add ecx, 0x10
dec edx
fstp dword [esp + 0x60]
fxch st(1)
fadd dword [eax - 0x1c]
fstp dword [ecx - 0x18]
fadd dword [eax - 0x18]
fstp dword [ecx - 0x14]
fld dword [esp + 0x60]
fadd dword [eax - 0x14]
mov dword [eax + esi - 0x10], 0x3f800000
fstp dword [ecx - 0x10]
jne 0x45ab8c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
test esi, esi
jbe 0x45aea0
test al, 4
je 0x45aea0
mov eax, dword [0x499778]
mov ecx, dword [esp + 0x80]
test eax, eax
je 0x45ad6f
test ecx, ecx
jbe 0x45af91
mov ebp, dword [esp + 0x98]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x8c]
sub eax, ebp
mov dword [esp + 0x80], eax
mov dword [esp + 0x98], ecx
mov edx, dword [esp + 0x1c]
push 0x3f800000
mov eax, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
push ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x28]
push eax
mov dword [ecx + 8], edx
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.0045b0f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
add esp, 0x20
xor edi, edi
mov dword [esp + 0x4c], ecx
test esi, esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jbe 0x45acf7
mov ecx, dword [esp + 0x94]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x80]
add ecx, ebp
mov eax, dword [edx + edi*4]
push ecx
push ebx
lea edx, [esp + 0x6c]
push eax
push edx
call fcn.00450220
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov eax, dword [eax + 8]
fld dword [esp + 0x68]
fadd dword [esp + 0x38]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
add esp, 0x10
inc edi
cmp edi, esi
fstp dword [esp + 0x28]
fld dword [esp + 0x5c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x60]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
jb 0x45ac94
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fld dword [esp + 0x30]
fmul dword [esp + 0x10]
mov eax, dword [esp + 0x98]
mov dword [ebp + 0xc], 0x3f800000
add ebx, 0xc
add ebp, 0x10
dec eax
fstp dword [esp + 0x30]
fld dword [esp + 0x4c]
fadd st(2)
mov dword [esp + 0x98], eax
fadd dword [esp + 0x1c]
fstp dword [ebp - 0x10]
fld dword [esp + 0x50]
fadd st(1)
fadd dword [esp + 0x20]
fstp dword [ebp - 0xc]
fstp st(0)
fstp st(0)
fld dword [esp + 0x54]
fadd dword [esp + 0x30]
fadd dword [esp + 0x24]
fstp dword [ebp - 8]
jne 0x45ac29
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
test ecx, ecx
jbe 0x45af91
mov ebx, dword [esp + 0x98]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
sub eax, ebx
mov dword [esp + 0x98], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], ecx
xor edi, edi
lea ebp, [ebx + eax]
test esi, esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jbe 0x45ae2c
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x98]
push ebp
push edx
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi*4]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00450220
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x68], ecx
mov eax, dword [eax + 8]
fld dword [esp + 0x68]
fadd dword [esp + 0x38]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], eax
add esp, 0x10
inc edi
cmp edi, esi
fstp dword [esp + 0x28]
fld dword [esp + 0x5c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x60]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
jb 0x45adc4
mov eax, dword [esp + 0x80]
fld dword [esp + 0x28]
fmul dword [esp + 0x10]
fld dword [esp + 0x2c]
fmul dword [esp + 0x10]
fld dword [esp + 0x30]
fmul dword [esp + 0x10]
mov edi, dword [esp + 0x98]
mov ecx, dword [esp + 0x8c]
mov dword [ebx + 0xc], 0x3f800000
add edi, 0xc
add ebx, 0x10
dec ecx
fstp dword [esp + 0x30]
fxch st(1)
fadd dword [esp + 0x1c]
mov dword [esp + 0x98], edi
mov dword [esp + 0x8c], ecx
fstp dword [ebx - 0x10]
fadd dword [esp + 0x20]
fstp dword [ebx - 0xc]
fld dword [esp + 0x30]
fadd dword [esp + 0x24]
fstp dword [ebx - 8]
jne 0x45ada3
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov eax, dword [0x499778]
test eax, eax
je 0x45af5b
mov ebx, dword [esp + 0x80]
test ebx, ebx
jbe 0x45af91
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x14]
lea esi, [ecx + 8]
mov eax, dword [esp + 0x1c]
push 0x3f800000
mov ecx, dword [esp + 0x24]
sub esp, 0xc
mov edx, esp
push edi
push ebp
mov dword [edx], eax
mov eax, dword [esp + 0x3c]
mov dword [edx + 4], ecx
lea ecx, [esp + 0x4c]
push ecx
mov dword [edx + 8], eax
lea edx, [esp + 0x8c]
push edx
call fcn.0045b0f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x78], ecx
fld dword [esp + 0x78]
fadd dword [esp + 0x3c]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esi + 4], 0x3f800000
add esp, 0x20
add edi, 0xc
fstp dword [esi - 8]
fld dword [esp + 0x5c]
fadd dword [esp + 0x20]
add esi, 0x10
dec ebx
fstp dword [esi - 0x14]
fld dword [esp + 0x60]
fadd dword [esp + 0x24]
fstp dword [esi - 0x10]
jne 0x45aed1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov ecx, dword [esp + 0x80]
test ecx, ecx
jbe 0x45af91
mov edx, dword [esp + 0x98]
lea eax, [edx + 8]
mov edx, dword [esp + 0x1c]
mov dword [eax + 4], 0x3f800000
mov dword [eax - 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax - 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax], edx
add eax, 0x10
dec ecx
jne 0x45af70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret