Function at 0x40b200
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x49c00c]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x5f
push ecx
push eax
mov dword [esp + 0x28], 0x82
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [edi + 0x54]
test eax, eax
je 0x40b27d
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b27d
mov eax, dword [edi + 0xc]
cmp eax, dword [esp + 0x1c]
jne 0x40b27d
mov eax, dword [edi + 0x10]
cmp eax, dword [esp + 0x20]
jne 0x40b27d
push esi
lea ecx, [edi + 0xfc]
call fcn.004097f0
test eax, eax
je 0x40b4b2
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x10], eax
test esi, esi
jne 0x40b293
xor ecx, ecx
jmp 0x40b2af
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b2a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [edi + 0xfc]
call fcn.00409900
push dword [edi + 0x54]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
jne 0x40b2fc
movss xmm1, dword [esp + 0x34]
movss xmm2, dword [esp + 0x38]
jmp 0x40b41f
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x10], 0
test eax, eax
je 0x40b34c
lea ecx, [esp + 0x58]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
lea eax, [esp + 0x10]
push eax
je 0x40b351
lea eax, [esp + 0x5c]
push eax
push ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFontFromLogfontA]
jmp 0x40b358
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.gdiplus.dll_GdipCreateFontFromDC]
mov esi, dword [esp + 0x10]
push 0x49efa0
call dword [sym.imp.gdiplus.dll_GdipStringFormatGetGenericTypographic]
mov dword [0x49efa4], eax
lea eax, [esp + 0x14]
push eax
push dword [0x49efa0]
mov dword [esp + 0x1c], 0
call dword [sym.imp.gdiplus.dll_GdipCloneStringFormat]
push 0x800
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
call dword [sym.imp.gdiplus.dll_GdipSetStringFormatFlags]
mov ecx, dword [esp + 0x18]
test eax, eax
movaps xmm0, xmmword [0x48df40]
push 0
push 0
cmovne ecx, eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x58]
mov dword [esp + 0x28], ecx
push eax
push esi
push 0xffffffffffffffff
push dword [edi + 0xfc]
movups xmmword [esp + 0x68], xmm0
push dword [esp + 0x48]
call dword [sym.imp.gdiplus.dll_GdipMeasureString]
push ebx
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_ReleaseDC]
movss xmm0, dword [esp + 0x34]
push dword [esp + 0x14]
movss dword [esp + 0x40], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x44], xmm0
call dword [sym.imp.gdiplus.dll_GdipDeleteStringFormat]
push esi
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
movss xmm1, dword [esp + 0x3c]
movss xmm2, dword [esp + 0x40]
movd xmm0, dword [edi + 0x100]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
cvttss2si ecx, xmm0
movd xmm0, dword [edi + 0x104]
cvtdq2ps xmm0, xmm0
mov dword [edi + 0x14], ecx
lea eax, [ecx - 0x1e]
addss xmm0, xmm2
cvttss2si edx, xmm0
mov dword [edi + 0x18], edx
cmp eax, 0xbe
jle 0x40b4b2
mov eax, dword [edi + 0x54]
test eax, eax
je 0x40b469
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push dword [esp + 0x44]
push 0
push 0x80
push SysReAllocString
push edx
push ecx
push dword [edi + 0x10]
mov ecx, edi
push dword [edi + 0xc]
call fcn.0040aef0
cmp byte [edi + 0xc9], 0
jne 0x40b4b2
push 4
push dword [edi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
cmp dword [eax + 4], 0
jne 0x40b4b2
mov esi, dword [edi + 0x54]
call sym.Install_rocket.exe_public:_static_class_CNsApp____cdecl_CNsApp::Instance_void_
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004298d0
mov esp, ebp
pop ebp
ret 0x14