Function at 0x404850
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451944
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x467080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [esi + 0x54]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esi]
mov dword [ebp - 0x4c], eax
push eax
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
xor edi, edi
push edi
push 2
mov dword [ebp - 0x40], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 0x40]
push ecx
push 1
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp - 0x40], edi
je 0x404a9d
test byte [0x46a410], 1
jne 0x4048e6
or dword [0x46a410], 1
mov ecx, 0x46a414
mov dword [ebp - 4], edi
call sym.Install_comm.exe_public:_void___thiscall_CNsImage::constructor_void_
push 0x4523d0
call fcn.00418f2c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0xac]
push 0x459114
push edx
push eax
mov ecx, 0x46a414
call sym.Install_comm.exe_public:_bool___thiscall_CNsImage::BmToStream_struct_HBITMAP_____struct_IStream___wchar_t_const__
mov ecx, dword [esi + 0x54]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 0x54]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [esi + 0x14]
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
sar ecx, 1
add ebx, edx
xor edi, edi
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ebx
test ecx, ecx
js 0x404a58
mov eax, ecx
imul eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, ecx
neg eax
fild dword [ebp - 0x3c]
neg ebx
add ecx, ecx
mov dword [ebp - 0x44], eax
fstp qword [ebp - 0x68]
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x3c], ecx
jmp 0x404973
mov eax, dword [ebp - 0x44]
fld qword [0x45c840]
imul eax, eax
mov dword [ebp - 0x48], eax
fild dword [ebp - 0x48]
fdiv qword [ebp - 0x68]
fld1
fsubrp st(1)
fmul st(1)
fmulp st(1)
call fcn.0042cee0
fsubr qword [0x45c840]
call fcn.0044eb10
mov edx, dword [esi + 0x54]
mov ebx, eax
mov eax, 0x1e
sub eax, ebx
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x18]
push edx
add eax, ebx
push 1
mov dword [ebp - 0x48], eax
push 0
lea eax, [esi + 0x9c]
push eax
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x38]
call sym.Install_comm.exe_public:_void___thiscall_CNsDC::constructor_struct_HDC_____struct_tagRECT___bool__bool__struct_HWND____
mov eax, 1
mov dword [ebp - 4], eax
test byte [0x46a410], al
jne 0x404a01
or dword [0x46a410], eax
mov ecx, 0x46a414
mov byte [ebp - 4], 2
call sym.Install_comm.exe_public:_void___thiscall_CNsImage::constructor_void_
push 0x4523d0
call fcn.00418f2c
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x40]
push edi
push edx
mov edx, dword [ebp - 0x38]
push eax
push ebx
push edi
push ecx
push edx
mov ecx, 0x46a414
call sym.Install_comm.exe_public:_void___thiscall_CNsImage::DrawRotate3D_struct_HDC_____struct_IStream___int__int__int__int__int__int_
lea ecx, [ebp - 0x38]
call sym.Install_comm.exe_public:_void___thiscall_CNsDC::Draw_void_
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call sym.Install_comm.exe_public:_void___thiscall_CNsDC::destructor_void_
mov eax, dword [ebp - 0x58]
add dword [ebp - 0x44], eax
add edi, eax
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x3c], eax
cmp edi, dword [ebp - 0x54]
jle 0x404970
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [esi + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esi + 0x64], 0
je 0x404a9d
mov edx, dword [esi + 0x54]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x54]
push 0
push 0
push 0x200
push eax
mov byte [esi + 0xc7], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418dfa
mov esp, ebp
pop ebp
ret