Function at 0x46f100
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
call edi
mov ecx, dword [ebp + 8]
push 7
lea eax, [ecx + eax*2]
mov dword [esp + 0x18], eax
call edi
mov esi, eax
push 4
add esi, esi
call edi
mov ebx, dword [ebp + 0xc]
add eax, esi
push 0
add ebx, eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
sub eax, dword [esp + 0x14]
mov ecx, dword [0x4e668c]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
sub eax, ebx
sar esi, 1
add esi, dword [esp + 0x18]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x1c]
test ecx, ecx
je 0x46f194
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46f194
push dword [0x4e668c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push dword [0x4e5c10]
mov dword [0x4e668c], 0
push 0
push dword [0x4e5ba8]
push ebx
push dword [esp + 0x28]
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x88c00000
push dword [ebp + 0x10]
push str.AutoHotkey2
push 8
call esi
lea ecx, [esp + 0x28]
mov dword [0x4e668c], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
push 0
push dword [0x4e5c10]
push 0
push dword [0x4e668c]
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push 0
push 0
push 0x50000001
push dword [ebp + 0x14]
push str.static
push 0
call esi
mov dword [esp + 0x14], eax
mov eax, dword [0x4e6688]
test eax, eax
jne 0x46f31d
push eax
push eax
push eax
push str.DISPLAY
lea ebx, [eax + 0xc]
call dword [sym.imp.GDI32.dll_CreateDCW]
push 0x1f
mov edi, eax
mov byte [esp + 0x53], 1
lea eax, [esp + 0x58]
mov byte [esp + 0x57], 0
push str.Segoe_UI
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
add esp, 0xc
xor eax, eax
mov word [esp + 0x92], ax
mov byte [esp + 0x13], al
push eax
lea eax, [esp + 0x17]
push eax
push 0x49d960
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
cmp byte [esp + 0x13], 0
je 0x46f2a7
movups xmm0, xmmword [str.Segoe_UI]
mov ax, word [0x4d8328]
mov ebx, 0xb
mov word [esp + 0xa8], ax
movups xmmword [esp + 0x98], xmm0
jmp 0x46f2c8
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x98]
push eax
push 0x40
push edi
call dword [sym.imp.GDI32.dll_GetTextFaceW]
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 + 0x98]
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_CreateFontW]
mov dword [0x4e6688], eax
push 1
push eax
push 0x30
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [0x4e668c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, 1
mov dword [0x4e30f4], 0
or ecx, 0xffffffff
call fcn.00401a20
pop edi
pop esi
mov dword [0x4e30f4], 1
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10