Function at 0x42cf20
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x78
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x62c]
test eax, eax
je 0x42d26e
cmp byte [eax], 0
je 0x42d26e
mov eax, dword [str.AutoHotkey]
xorps xmm0, xmm0
push 0
mov dword [esp + 0x3c], eax
mov edx, 0xffffff61
mov eax, dword [0x4d99e0]
xor ecx, ecx
push 0
push 0
mov dword [esp + 0x20], 0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], 0x45a560
call fcn.004ada30
add esp, 0xc
mov dword [0x4d9b00], eax
push 0
push 0
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
mov edx, 0xffffff61
xor ecx, ecx
call fcn.004ada30
mov ecx, dword [0x4d9b00]
add esp, 0xc
mov dword [0x4d9b04], 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
mov word [0x4da400], ax
test ax, ax
je 0x42d255
lea eax, [esp + 0x10]
mov dword [esp + 0x38], str.AutoHotkey2
push eax
mov dword [esp + 0x38], 0
call esi
mov word [0x4da3fc], ax
test ax, ax
je 0x42d255
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x42d055
push 0x40
lea ecx, [esp + 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x42d051
lea eax, [esp + 0x40]
push str.Shell_TrayWnd
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x42d055
xor bl, bl
jmp 0x42d057
mov bl, 1
push 0
push dword [0x4d99e0]
mov esi, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push 0
push connect
push connect
push connect
push connect
push 0xcf0000
push dword [edi + 0x62c]
movzx eax, bl
push dword [0x4d70fc]
shl eax, 7
push eax
call esi
mov dword [0x4d9978], eax
test eax, eax
je 0x42d24e
push 0
push dword [0x4d99e0]
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50a00804
push 0
push str.edit
push 0
call esi
mov dword [0x4d9954], eax
test eax, eax
je 0x42d24e
push eax
call dword [sym.imp.USER32.dll_GetDC]
cmp byte [0x4dc273], 0
mov esi, eax
mov eax, str.Lucida_Console
mov ecx, str.Consolas
cmove ecx, eax
push ecx
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 [0x4d9954]
mov dword [0x4da3f8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [0x4da3f8]
push 0x30
push dword [0x4d9954]
call esi
push 0
push 0
push 0xc5
push dword [0x4d9954]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x4d9978]
call esi
push 0
push dword [0x4d9978]
call esi
test bl, bl
je 0x42d19a
push 6
push dword [0x4d9978]
call esi
push 0
push 0xffffffffffffffec
push dword [0x4d9978]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xd4
push dword [0x4d99e0]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
cmp byte [0x4da2b9], 0
mov dword [0x4d9950], eax
je 0x42d1c5
mov dword [edi + 0x15a], 0
jmp 0x42d1cc
mov ecx, edi
call fcn.0042d280
cmp dword [edi + 0x5dc], 0
je 0x42d242
cmp byte [0x4fd534], 1
je 0x42d242
mov eax, dword [0x4dc29c]
test eax, eax
je 0x42d229
cmp dword [0x4dc298], 0
je 0x42d229
push dword [0x4d9978]
call eax
cmp byte [edi + 0x630], 0
jne 0x42d23b
push 0
push 1
push 0x415
push dword [0x4d9978]
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [0x4fd534], 1
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x78
ret
push dword [0x4d9978]
call dword [sym.imp.USER32.dll_SetClipboardViewer]
mov dword [edi + 0x5e4], eax
mov byte [0x4fd534], 1
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x78
ret
mov ecx, str.CreateWindow
jmp 0x42d25a
mov ecx, str.RegClass
push 0
push 0
xorps xmm3, xmm3
mov edx, 0x10000
call fcn.004b2410
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x78
ret