Function at 0x416c00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x78
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x610]
test eax, eax
je 0x416cee
cmp byte [eax], 0
je 0x416cee
push 0x2c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.0048fd00
mov eax, dword [0x4af0ec]
add esp, 0xc
mov edx, 0xffffff61
mov dword [esp + 0x10], 0x30
xor ecx, ecx
mov dword [esp + 0x38], str.AutoHotkey
mov dword [esp + 0x24], eax
push 0
push 0
push 0
mov dword [esp + 0x24], 0x438a40
call fcn.00474830
add esp, 0xc
mov dword [0x4af1ec], eax
push 0
push 0
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
mov edx, 0xffffff61
xor ecx, ecx
call fcn.00474830
mov ecx, dword [0x4af1ec]
add esp, 0xc
mov dword [0x4af1f0], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], 0xd3
call esi
test ax, ax
jne 0x416cf7
sub esp, 8
xorps xmm0, xmm0
mov edx, 0x10000
mov ecx, str.RegClass
movsd qword [esp], xmm0
push 0
push 0
call fcn.00477510
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x78
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x38], str.AutoHotkey2
push eax
mov dword [esp + 0x38], 0
call esi
test ax, ax
je 0x416ccd
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x416d49
push 0x40
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x416d45
lea eax, [esp + 0x40]
push str.Shell_TrayWnd
push eax
call fcn.004855c8
add esp, 8
test eax, eax
je 0x416d49
xor bl, bl
jmp 0x416d4b
mov bl, 1
push 0
push dword [0x4af0ec]
xor eax, eax
mov ecx, 0x80
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push dword [edi + 0x610]
test bl, bl
push str.AutoHotkey
cmovne eax, ecx
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4af0ac], eax
test eax, eax
jne 0x416dc1
sub esp, 8
xorps xmm0, xmm0
mov edx, 0x10000
mov ecx, str.CreateWindow
movsd qword [esp], xmm0
push 0
push 0
call fcn.00477510
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x78
ret
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push 3
mov esi, eax
push 0xff79
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 3
push esi
call fcn.00416ff0
push 0
push dword [0x4af0ec]
push 1
push dword [0x4af0ac]
push 0
push 0
push 0
push 0
push 0x50a00804
push 0
push str.edit
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4af08c], eax
test eax, eax
je 0x416d97
push eax
call dword [sym.imp.USER32.dll_GetDC]
cmp byte [0x4b1173], 0
mov esi, eax
jne 0x416e2e
push str.Lucida_Console
jmp 0x416e33
push str.Consolas
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x48
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
push eax
call dword [sym.imp.GDI32.dll_CreateFontA]
push esi
push dword [0x4af08c]
mov dword [0x4afad0], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [0x4afad0]
push 0x30
push dword [0x4af08c]
call esi
push 0
push 0
push 0xc5
push dword [0x4af08c]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4af0ac]
call esi
push 0
push dword [0x4af0ac]
call esi
test bl, bl
je 0x416edb
push 6
push dword [0x4af0ac]
call esi
push 0
push 0xffffffffffffffec
push dword [0x4af0ac]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xd4
push dword [0x4af0ec]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
cmp byte [0x4af99b], 0
mov dword [0x4aef84], eax
je 0x416f06
mov dword [edi + 0x17a], 0
jmp 0x416f0d
mov ecx, edi
call fcn.00417030
cmp dword [edi + 0x5c0], 0
je 0x416f1f
push 1
mov ecx, edi
call fcn.00416f30
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x78
ret