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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a2c38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00488b06
push 0xffff
push 1
push 4
lea ecx, [esp + 0x6c]
mov esi, eax
call fcn.00488f87
mov edx, dword [esi]
push 0
mov ecx, esi
mov dword [esp + 0x98], 0
call dword [edx + 0x2c]
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.00488eed
push 7
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004883d1
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call fcn.004068e0
fld qword [ebp + 0x18]
fmul qword [edi + 0x780]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, edx
fst qword [esp + 0x28]
push eax
fadd qword [esp + 0x5c]
push ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ecx
fst qword [esp + 0x78]
mov ecx, edi
fstp qword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.00406b40
mov ebx, eax
test ebx, ebx
je 0x406f4c
fld qword [esp + 0x30]
call fcn.00469dd0
fld qword [esp + 0x40]
push eax
call fcn.00469dd0
push eax
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call fcn.004888b8
fld qword [0x4a7a18]
mov dword [esp + 0x10], 0
fdiv qword [esp + 0x28]
fst qword [esp + 0x68]
fst qword [esp + 0x48]
fld qword [0x4a86e0]
fadd st(0), st(0)
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x4071f5
fld qword [esp + 0x48]
fld st(0)
fcos
fmul qword [esp + 0x28]
fadd qword [esp + 0x58]
fstp qword [esp + 0x20]
mov ecx, dword [esp + 0x24]
fsin
fmul qword [esp + 0x28]
fsubr qword [esp + 0x30]
fstp qword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00406b40
test eax, eax
je 0x40705c
test ebx, ebx
je 0x407027
mov eax, dword [esp + 0x10]
inc eax
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x406fd7
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 5
fld qword [esp + 0x18]
mov dword [esp + 0x10], eax
jge 0x40700d
call fcn.00469dd0
fld qword [esp + 0x20]
push eax
call fcn.00469dd0
push eax
mov ecx, esi
call fcn.0048851e
fld qword [esp + 0x48]
fld qword [esp + 0x20]
mov ebx, 1
jmp 0x4071c0
call fcn.00469dd0
fld qword [esp + 0x20]
push eax
call fcn.00469dd0
push eax
lea ecx, [esp + 0x80]
push ecx
jmp 0x407043
fld qword [esp + 0x18]
call fcn.00469dd0
fld qword [esp + 0x20]
push eax
call fcn.00469dd0
push eax
lea edx, [esp + 0x88]
push edx
mov ecx, esi
call fcn.004888b8
fld qword [esp + 0x48]
fld qword [esp + 0x20]
mov ebx, 1
jmp 0x4071c0
fld qword [0x4a79f0]
mov dword [esp + 0x38], 0
fild dword [edi + 0x778]
mov dword [esp + 0x3c], 0
fld qword [esp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4070b0
fld qword [esp + 0x20]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x4070a2
fstp st(0)
fld qword [esp + 0x70]
fsub qword [esp + 0x20]
fadd st(0), st(0)
jmp 0x4070e8
fld qword [esp + 0x20]
fsub st(1)
fstp qword [esp + 0x38]
fstp st(0)
jmp 0x4070ec
fstp st(0)
fld qword [esp + 0x20]
fcomp qword [0x4a79f0]
fnstsw ax
test ah, 5
jp 0x4070ec
fld qword [esp + 0x20]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 5
jp 0x4070e2
fld qword [esp + 0x58]
fsub qword [esp + 0x28]
fsubr qword [esp + 0x20]
fadd st(0), st(0)
jmp 0x4070e8
fld qword [esp + 0x20]
fchs
fstp qword [esp + 0x38]
fld qword [esp + 0x18]
fcomp qword [0x4a79f0]
fnstsw ax
test ah, 5
jp 0x407126
fstp st(0)
fld qword [esp + 0x18]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 5
jp 0x40711e
fld qword [esp + 0x30]
fsub qword [esp + 0x28]
fsubr qword [esp + 0x18]
fadd st(0), st(0)
jmp 0x407168
fld qword [esp + 0x18]
fchs
jmp 0x407168
fild dword [edi + 0x774]
fstp qword [esp + 0x40]
fld qword [esp + 0x18]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x407168
fstp st(0)
fld qword [esp + 0x18]
fcomp qword [esp + 0x50]
fnstsw ax
test ah, 0x41
jne 0x407160
fld qword [esp + 0x28]
fadd qword [esp + 0x30]
fsub qword [esp + 0x18]
fadd st(0), st(0)
jmp 0x407168
fld qword [esp + 0x18]
fsub qword [esp + 0x40]
fld qword [esp + 0x38]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x407185
fstp st(0)
fld qword [esp + 0x38]
fmul qword [esp + 0x68]
fadd qword [esp + 0x48]
jmp 0x4071a2
fcom qword [0x4a79f0]
fnstsw ax
test ah, 0x41
jne 0x40719c
fmul qword [esp + 0x68]
fadd qword [esp + 0x48]
jmp 0x4071a2
fstp st(0)
fld qword [esp + 0x48]
fld st(0)
xor ebx, ebx
fcos
fmul qword [esp + 0x28]
fadd qword [esp + 0x58]
fld st(1)
fsin
fmul qword [esp + 0x28]
fsubr qword [esp + 0x30]
fstp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
fstp qword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
fadd qword [esp + 0x68]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
fst qword [esp + 0x48]
fld qword [0x4a86e0]
fadd st(0), st(0)
fld st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x406f81
fstp st(0)
push 0xd
mov ecx, esi
call fcn.004883d1
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.00488eed
lea ecx, [esp + 0x60]
call fcn.00488e68
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x60]
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x60], vtable.CGdiObject.0
call fcn.00488e68
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18