Function at 0x46a450
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
call edi
mov ecx, dword [esp + 0xb8]
push 7
lea ebp, [ecx + eax*2]
call edi
mov esi, eax
push 4
add esi, esi
call edi
mov ebx, dword [esp + 0xbc]
add eax, esi
push 0
add ebx, eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ecx, dword [0x4ec1b4]
sub eax, ebp
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
sub eax, ebx
sar esi, 1
add esi, dword [esp + 0x14]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x18]
test ecx, ecx
je 0x46a4e1
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46a4e1
push dword [0x4ec1b4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push dword [0x4eb7a0]
mov dword [0x4ec1b4], 0
push 0
push dword [0x4eb73c]
push ebx
push ebp
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x88c00000
push dword [esp + 0xe4]
push str.AutoHotkey2
push 8
call esi
lea ecx, [esp + 0x24]
mov dword [0x4ec1b4], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 0
push dword [0x4eb7a0]
push 0
push dword [0x4ec1b4]
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
push eax
push 0
push 0
push 0x50000001
push dword [esp + 0xe8]
push str.static
push 0
call esi
mov ebp, eax
mov eax, dword [0x4ec1b0]
test eax, eax
jne 0x46a65d
push eax
push eax
push eax
push str.DISPLAY
lea ebx, [eax + 0xc]
call dword [sym.imp.GDI32.dll_CreateDCA]
push 0x1f
mov edi, eax
mov byte [esp + 0x4f], 1
lea eax, [esp + 0x54]
mov byte [esp + 0x53], 0
push str.Segoe_UI
push eax
call fcn.004ba990
add esp, 0xc
mov byte [esp + 0x6f], 0
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push 0
push eax
push 0x49f340
lea eax, [esp + 0x40]
push eax
push edi
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExA]
cmp byte [esp + 0x13], 0
je 0x46a5ed
movq xmm0, qword [str.Segoe_UI]
mov ebx, 0xb
mov al, byte [0x4def38]
movq qword [esp + 0x70], xmm0
mov byte [esp + 0x78], al
jmp 0x46a60b
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x70]
push eax
push 0x40
push edi
call dword [sym.imp.GDI32.dll_GetTextFaceA]
push 0x5a
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
lea eax, [esp + 0x70]
imul esi, ebx
push eax
push 0
push 2
push 0
push 4
push 1
push 0
push 0
mov eax, 0xc71c71c7
imul esi
push 0
push 0x190
sar edx, 4
push 0
mov eax, edx
push 0
shr eax, 0x1f
push 0
add eax, edx
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [0x4ec1b0], eax
push 1
push eax
push 0x30
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 4
push dword [0x4ec1b4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, 1
mov dword [0x4e88c4], 0
or ecx, 0xffffffff
call fcn.00401730
pop edi
pop esi
pop ebp
mov dword [0x4e88c4], 1
mov eax, 1
pop ebx
add esp, 0xa4
ret 0x10