Function at 0x4158c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0xb4
push ebx
push esi
push edi
mov edi, dword [esp + 0xc4]
mov eax, dword [edi + 0xac8]
test eax, eax
je 0x4159ae
cmp word [eax], 0
je 0x4159ae
push 0x2c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004968d0
mov ecx, dword [0x4c84c0]
push 0
push 0
push 0xffffff61
push 0
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0x54], 0x4a1910
mov dword [esp + 0x40], ecx
mov dword [esp + 0x34], 0x439ac0
call fcn.004762b0
add esp, 0x1c
push 0
push 0x31
mov dword [0x4c7208], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0xffffff61
push 0
call fcn.004762b0
mov edx, dword [0x4c7208]
add esp, 0x10
push 0x7f00
push 0
mov dword [0x4c720c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.USER32.dll_RegisterClassExW]
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 0x4159bc
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push str.RegClass
call fcn.00478ed0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0xb4
ret 4
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x3c], str.AutoHotkey2
mov dword [esp + 0x38], 0
call esi
test ax, ax
je 0x415990
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x415a11
push 0x40
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x415a0a
lea eax, [esp + 0x40]
push str.Shell_TrayWnd
push eax
call fcn.0048d9f9
add esp, 8
test eax, eax
je 0x415a11
mov byte [esp + 0xf], 0
jmp 0x415a16
mov byte [esp + 0xf], 1
mov ecx, dword [0x4c84c0]
movzx eax, byte [esp + 0xf]
mov edx, dword [edi + 0xac8]
push 0
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExW]
push ecx
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
neg eax
push edx
sbb eax, eax
push 0x4a1910
and eax, 0x80
push eax
call ebx
mov dword [0x4c84c8], eax
test eax, eax
jne 0x415a83
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 0x10000
push str.CreateWindow
jmp 0x4159a6
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push 3
mov edi, eax
push 0xff79
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov esi, 3
call fcn.00415cb0
mov ecx, dword [0x4c84c0]
mov edx, dword [0x4c84c8]
push 0
push ecx
push 1
push edx
push 0
push 0
push 0
push 0
push 0x50a00804
push 0
push str.edit
push 0
call ebx
mov dword [0x4c84cc], eax
test eax, eax
je 0x415a68
push eax
call dword [sym.imp.USER32.dll_GetDC]
cmp byte [0x4cb2de], 0
mov esi, eax
jne 0x415af0
push str.Lucida_Console
jmp 0x415af5
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_CreateFontW]
mov dword [0x4c84d4], eax
mov eax, dword [0x4c84cc]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [0x4c84d4]
mov edx, dword [0x4c84cc]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push ecx
push 0x30
push edx
call esi
mov eax, dword [0x4c84cc]
push 0
push 0
push 0xc5
push eax
call esi
mov ecx, dword [0x4c84c8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call esi
mov edx, dword [0x4c84c8]
push 0
push edx
call esi
cmp byte [esp + 0xf], 0
je 0x415ba5
mov eax, dword [0x4c84c8]
push 6
push eax
call esi
mov ecx, dword [0x4c84c8]
push 0
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [0x4c84c0]
push 0xd4
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
cmp byte [0x4c8619], 0
mov esi, dword [esp + 0xc4]
mov dword [0x4c84dc], eax
je 0x415bd8
mov dword [esi + 0x27a], 0
jmp 0x415bdd
call fcn.00415ce0
cmp dword [esi + 0xa78], 0
je 0x415bed
mov bl, 1
call fcn.00415c00
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xb4
ret 4