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

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
mov ebp, edx
push edi
mov edx, dword [esp + 0x7c]
sub eax, ebp
xor edi, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edi
mov ebx, dword [esp + 0x84]
fild qword [esp + 0x48]
sub edx, ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], ecx
fstp dword [esp + 0x24]
fild qword [esp + 0x48]
mov ecx, ebx
mov dword [esp + 0x20], ebp
fstp dword [esp + 0x2c]
call fcn.00404000
mov eax, dword [esp + 0x80]
mov esi, ebp
cmp ebp, eax
mov dword [esp + 0x1c], esi
jae 0x404add
jmp 0x40470a
mov ebp, dword [esp + 0x20]
xor edi, edi
mov eax, esi
mov dword [esp + 0x54], edi
sub eax, ebp
mov ecx, dword [0x4b0a50]
mov dword [esp + 0x50], eax
mov ebp, esi
fild qword [esp + 0x50]
and ebp, 3
and ecx, 0xff
shl ebp, 2
fdiv dword [esp + 0x24]
xor eax, eax
dec ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
fld dword [0x491434]
fsub st(1)
fld st(0)
fmul dword [ebx + 0x70]
fld st(2)
fmul dword [ebx + 0x78]
faddp st(1)
fstp dword [esp + 0x34]
fld st(0)
fmul dword [ebx + 0x74]
fld st(2)
fmul dword [ebx + 0x7c]
faddp st(1)
fstp dword [esp + 0x30]
fld st(0)
fmul dword [ebx + 0x40]
fld st(2)
fmul dword [ebx + 0x58]
faddp st(1)
fstp dword [esp + 0x3c]
fld st(0)
fmul dword [ebx + 0x4c]
fld st(2)
fmul dword [ebx + 0x64]
faddp st(1)
fstp dword [esp + 0x38]
fld st(0)
fmul dword [ebx + 0x44]
fld st(2)
fmul dword [ebx + 0x5c]
faddp st(1)
fstp dword [esp + 0x44]
fmul dword [ebx + 0x50]
fxch st(1)
fmul dword [ebx + 0x68]
faddp st(1)
fstp dword [esp + 0x40]
je 0x4047d8
dec ecx
jne 0x404849
mov eax, dword [0x4b0a58]
mov edx, dword [0x4b0a4c]
mov ecx, eax
imul eax, dword [esp + 0x10]
imul ecx, dword [0x4b0a54]
shr ecx, 3
imul ecx, esi
shr eax, 3
add edx, ecx
add eax, edx
jmp 0x40483f
mov eax, dword [0x4b0a48]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x40480a
mov edx, dword [0x51da28]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
cmp dword [esp + 0x48], edi
jge 0x404800
mov dword [esp + 0x48], edi
cmp dword [esp + 0x4c], edi
jge 0x40480a
mov dword [esp + 0x4c], edi
mov ecx, dword [0x4b0a48]
call fcn.0044c6c0
cmp eax, edi
je 0x404849
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0x4c]
imul ecx, dword [0x4b0a58]
add edx, esi
imul edx, dword [0x4b0a54]
shr ecx, 3
add edx, eax
lea eax, [edx + ecx]
mov dword [0x4b0a5c], 1
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, edi
cmp eax, ecx
jae 0x404a9e
jmp 0x404865
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, edi
sub ecx, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], ecx
fild qword [esp + 0x58]
fdiv dword [esp + 0x2c]
fstp dword [esp + 0x84]
fld dword [0x491434]
fsub dword [esp + 0x84]
fstp dword [esp + 0x14]
fld dword [esp + 0x84]
fmul dword [esp + 0x30]
fld dword [esp + 0x14]
fmul dword [esp + 0x34]
faddp st(1)
fld dword [esp + 0x84]
fmul dword [esp + 0x38]
fld dword [esp + 0x14]
fmul dword [esp + 0x3c]
faddp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x84]
fmul dword [esp + 0x40]
fld dword [esp + 0x14]
fmul dword [esp + 0x44]
faddp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x60]
fcomp dword [0x491490]
fnstsw ax
test ah, 1
je 0x40499f
fld dword [esp + 0x60]
fcomp dword [0x49148c]
fnstsw ax
test ah, 0x41
jne 0x40499f
fld dword [esp + 0x64]
fcomp dword [0x491490]
fnstsw ax
test ah, 1
je 0x40499f
fld dword [esp + 0x64]
fcomp dword [0x49148c]
fnstsw ax
test ah, 0x41
jne 0x40499f
fld dword [esp + 0x64]
fmul dword [0x491488]
fsub dword [0x491440]
call fcn.0044eaa0
fld dword [esp + 0x60]
fmul dword [0x491488]
mov esi, eax
and esi, 0x3ff
fsub dword [0x491440]
shl esi, 0xa
call fcn.0044eaa0
mov edx, dword [0x51ba28]
and eax, 0x3ff
add esi, eax
xor ecx, ecx
lea eax, [edx + esi*2]
mov edx, dword [0x51ba3c]
add esi, eax
xor eax, eax
mov al, byte [esi + edx]
add esi, edx
inc esi
xor edx, edx
mov cl, byte [esi + 1]
mov dl, byte [esi]
add eax, ecx
add edx, eax
cmp edx, 2
jbe 0x40499f
fstp st(0)
fld dword [0x491464]
fld dword [esp + 0x64]
fmul dword [0x491484]
fsub dword [0x491480]
call fcn.0044eaa0
xor edx, edx
mov ecx, 0x1a0
div ecx
fld dword [esp + 0x60]
fmul dword [0x491484]
fsub dword [0x49143c]
mov esi, edx
shl esi, 9
call fcn.0044eaa0
mov edx, dword [0x51b878]
and eax, 0x1ff
add esi, eax
xor ecx, ecx
lea eax, [edx + esi*2]
mov edx, dword [0x51b88c]
add esi, eax
xor eax, eax
add esi, edx
xor edx, edx
mov dl, byte [esi + 1]
mov cl, byte [esi]
mov al, byte [esi + 2]
mov dword [esp + 0x74], ecx
mov ecx, edi
and ecx, 3
inc esi
add ecx, ebp
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], eax
fld dword [ecx*4 + 0x4b0cf8]
fstp dword [esp + 0x84]
fmul dword [0x49147c]
fild dword [esp + 0x74]
fmul st(1)
fadd dword [esp + 0x84]
call fcn.0044eaa0
fild dword [esp + 0x6c]
mov esi, eax
fmul st(1)
fadd dword [esp + 0x84]
call fcn.0044eaa0
fild dword [esp + 0x70]
mov ebp, eax
fmul st(1)
fadd dword [esp + 0x84]
call fcn.0044eaa0
sub esp, 0xc
mov edx, esp
shl ebp, 3
mov dword [edx], ebp
shl eax, 3
mov dword [edx + 4], eax
shl esi, 3
fstp st(0)
mov dword [edx + 8], esi
call dword [0x4b0a60]
mov ecx, dword [esp + 0x18]
mov word [ecx], ax
mov eax, dword [esp + 0x7c]
add ecx, 2
inc edi
cmp edi, eax
mov dword [esp + 0x18], ecx
jb 0x404861
mov esi, dword [esp + 0x1c]
mov eax, dword [0x4b0a50]
and eax, 0xff
dec eax
jne 0x404abf
mov eax, dword [0x4b0a5c]
test eax, eax
je 0x404abf
mov ecx, dword [0x4b0a48]
call fcn.0044c780
mov eax, dword [esp + 0x80]
inc esi
cmp esi, eax
mov dword [0x4b0a5c], 0
mov dword [esp + 0x1c], esi
jb 0x404704
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 0xc