Function at 0x4040c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442914
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x453080]
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 + 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esi]
mov dword [ebp - 0x4c], eax
push eax
mov eax, dword [edx + 8]
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 0x40430d
test byte [0x456390], 1
jne 0x404156
or dword [0x456390], 1
mov ecx, 0x456394
mov dword [ebp - 4], edi
call sym.Install_rocket.exe_public:_void___thiscall_CNsImage::constructor_void_
push 0x442fc0
call fcn.00415e7c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0xa4]
push 0x446968
push edx
push eax
mov ecx, 0x456394
call sym.Install_rocket.exe_public:_bool___thiscall_CNsImage::BmToStream_struct_HBITMAP_____struct_IStream___wchar_t_const__
mov ecx, dword [esi + 0x4c]
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [esi + 0x4c]
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 0x4042c8
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 0x4041e3
mov eax, dword [ebp - 0x44]
fld qword [0x448e60]
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.00421aa0
fsubr qword [0x448e60]
call fcn.0043ff80
mov edx, dword [esi + 0x4c]
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 + 0x94]
push eax
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x38]
call sym.Install_rocket.exe_public:_void___thiscall_CNsDC::constructor_struct_HDC_____struct_tagRECT___bool__bool__struct_HWND____
mov eax, 1
mov dword [ebp - 4], eax
test byte [0x456390], al
jne 0x404271
or dword [0x456390], eax
mov ecx, 0x456394
mov byte [ebp - 4], 2
call sym.Install_rocket.exe_public:_void___thiscall_CNsImage::constructor_void_
push 0x442fc0
call fcn.00415e7c
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, 0x456394
call sym.Install_rocket.exe_public:_void___thiscall_CNsImage::DrawRotate3D_struct_HDC_____struct_IStream___int__int__int__int__int__int_
lea ecx, [ebp - 0x38]
call sym.Install_rocket.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_rocket.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 0x4041e0
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 + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [esi + 0x5c], 0
je 0x40430d
mov edx, dword [esi + 0x4c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x4c]
push 0
push 0
push 0x200
push eax
mov byte [esi + 0xbf], 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.00415d4a
mov esp, ebp
pop ebp
ret