Function at 0x40cec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x958
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov eax, dword [0x4f0708]
mov esi, ecx
mov dword [esp + 0x2c], esi
test eax, eax
jne 0x40cef5
mov eax, dword [0x4f0704]
test eax, eax
je 0x40cef0
cmp word [eax], 0
jne 0x40cef5
mov eax, str.AutoHotkey_v2.1_alpha.9
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebp
push 8
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x1f5
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
movaps xmm0, xmmword [0x4e1f90]
mov edi, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x30]
push eax
push 0
push 0xb2
push edi
movups xmmword [esp + 0x50], xmm0
call ebx
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_MapDialogRect]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x34], eax
sub dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x48]
add dword [esp + 0x30], ecx
sub dword [esp + 0x38], ecx
push eax
push 0
push 0xb4
push edi
call ebx
mov eax, 1
mov dword [esp + 0xc8], 0x9c
mov word [esp + 0xe2], ax
lea eax, [esp + 0xc8]
push eax
push 0
push 0x447
push edi
mov dword [esp + 0xdc], 0x10
mov dword [esp + 0xf4], 0x12c
call ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0x74
push eax
push 0
push 0x444
push edi
mov dword [esp + 0x64], connect
mov dword [esp + 0x6c], 0xb4
call ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0xc0000000
push eax
push 1
push 0x444
push edi
mov dword [esp + 0x6c], 0xc8
mov dword [esp + 0x74], 0x3399
mov dword [esp + 0x68], 0
call ebx
mov ecx, dword [ebp + 4]
cmp ecx, 2
jne 0x40d00e
mov eax, str.Critical_Error
jmp 0x40d01e
cmp ecx, 1
mov eax, str.Warning
mov edx, 0x4d74fc
cmovne eax, edx
push dword [ebp]
push eax
push str._s:__.500s_n_n
lea eax, [esp + 0x174]
push 0x400
push eax
call fcn.004868c0
add esp, 0x14
lea eax, [esp + 0x168]
push eax
push 0
push 0xc2
push edi
call ebx
mov edx, dword [ebp + 8]
test edx, edx
je 0x40d0c0
cmp word [edx], 0
je 0x40d0c0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d060
sub ecx, esi
mov eax, 0x50
sar ecx, 1
cmp eax, ecx
mov ecx, str.Specifically:__.80s_s_n_n
sbb eax, eax
and eax, 0x2026
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push edx
mov eax, str.Text:_t_.80s_s_n
cmovne eax, ecx
push eax
lea eax, [esp + 0x174]
push 0x400
push eax
call fcn.004868c0
add esp, 0x14
lea eax, [esp + 0x168]
push eax
push 0
push 0xc2
push edi
call ebx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40d1f0
cmp byte [0x4ea8ee], 0
mov edx, esi
mov dword [esp + 0x24], edx
je 0x40d104
xor eax, eax
nop dword [eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x40d0ef
inc eax
mov esi, ecx
cmp eax, 2
jl 0x40d0e0
xor eax, eax
mov ecx, dword [edx + 0x14]
test ecx, ecx
je 0x40d104
inc eax
mov edx, ecx
mov dword [esp + 0x24], edx
cmp eax, 2
jl 0x40d0f1
xor eax, eax
mov dword [esp + 0x28], eax
nop word [eax + eax]
movzx ecx, word [esi + 2]
cmp eax, ecx
je 0x40d150
mov eax, dword [0x4ef190]
mov dword [esp + 0x28], ecx
push dword [eax + ecx*4]
lea eax, [esp + 0x16c]
push str._t______s_n
push 0x400
push eax
call fcn.004868c0
add esp, 0x10
lea eax, [esp + 0x168]
push eax
push 0
push 0xc2
push edi
call ebx
xor eax, eax
cmp esi, dword [ebp + 0xc]
jne 0x40d18f
mov dword [esp + 0x64], eax
lea eax, [esp + 0x50]
push eax
push 1
push 0x444
push edi
mov dword [esp + 0x64], 0x44000000
mov dword [esp + 0xc0], 0x60ffff
call ebx
mov eax, 0x25b6
mov word [esp + 0x168], ax
mov eax, 1
mov dword [esp + eax*2 + 0x168], 9
xor ecx, ecx
lea eax, [esp + 0x168]
push eax
push ecx
push 0xc2
push edi
call ebx
push 1
push 0
push 0
push ecx
push 0x400
lea eax, [esp + 0x17c]
mov ecx, esi
push eax
call fcn.0044f780
lea eax, [esp + 0x168]
push eax
push 0
push 0xc2
push edi
call ebx
cmp esi, dword [esp + 0x24]
je 0x40d285
mov esi, dword [esi + 0x14]
mov eax, dword [esp + 0x28]
jmp 0x40d110
mov eax, dword [0x4f068c]
test eax, eax
je 0x40d1fe
mov eax, dword [eax + 4]
jmp 0x40d203
mov eax, dword [0x4f02c8]
push eax
push str.Line:_t_d_nFile:_t
lea eax, [esp + 0x170]
push 0x400
push eax
call fcn.004868c0
add esp, 0x10
lea eax, [esp + 0x168]
push eax
push 0
push 0xc2
push edi
call ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0x20
push eax
push 1
push 0x444
push edi
mov dword [esp + 0x68], 0x20
call ebx
mov eax, dword [0x4f068c]
test eax, eax
je 0x40d25e
movzx ecx, word [eax + 2]
jmp 0x40d264
mov ecx, dword [0x4f02c4]
mov eax, dword [0x4ef190]
push dword [eax + ecx*4]
push 0
push 0xc2
push edi
call ebx
push 0x4d75a8
push 0
push 0xc2
push edi
call ebx
mov eax, dword [ebp + 4]
sub eax, 1
je 0x40d2da
sub eax, 1
je 0x40d2d3
sub eax, 7
je 0x40d2cf
mov eax, dword [0x4ea828]
test byte [eax + 0x34], 4
je 0x40d2a9
mov esi, str.__Delete_will_now_return.
jmp 0x40d2df
cmp byte [0x4f071c], 0
je 0x40d2b9
mov esi, str.The_current_thread_will_exit.
jmp 0x40d2df
cmp byte [0x4f071e], 0
mov esi, str.The_script_was_not_reloaded__the_old_version_will_remain_in_effect.
mov eax, str.The_program_will_exit.
cmove esi, eax
jmp 0x40d2df
xor esi, esi
jmp 0x40d2ff
mov esi, str.The_program_is_now_unstable_and_will_exit.
jmp 0x40d2df
mov esi, str.For_more_details__read_the_documentation_for_Warn.
cmp dword [ebp + 0xc], 0
je 0x40d2f4
push 0x4d7798
push 0
push 0xc2
push edi
call ebx
push esi
push 0
push 0xc2
push edi
call ebx
cmp dword [ebp + 0x14], 0
jge 0x40d39b
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40d42b
mov eax, dword [ecx]
push dword [0x4eff20]
mov eax, dword [eax + 0x28]
call eax
test al, al
je 0x40d42b
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
push str.Stack
call fcn.0047dec0
test eax, eax
je 0x40d42b
mov edx, dword [eax + 8]
test edx, edx
je 0x40d386
cmp edx, 6
je 0x40d37f
cmp edx, 0x4c
je 0x40d37f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
cmp edx, 4
jne 0x40d39b
cmp byte [ecx + 0x17], 0
jne 0x40d372
mov ecx, dword [ecx + 0xc]
call fcn.004053d0
mov ecx, eax
xor eax, eax
test byte [ecx + 0x15], 0x70
jne 0x40d393
cmp dword [ecx + 0xc], eax
jmp 0x40d390
mov ecx, 0x4d3ee8
jmp 0x40d38b
mov ecx, dword [eax]
add ecx, 8
xor eax, eax
cmp word [ecx], ax
sete al
test eax, eax
jne 0x40d42b
xor eax, eax
test esi, esi
setne al
inc eax
mov dword [esp + 0x10], eax
mov esi, eax
nop dword [eax]
push 0x4d7798
push 0
push 0xc2
push edi
call ebx
sub esi, 1
jne 0x40d3b0
lea eax, [esp + 0x10]
push eax
push esi
push 0x434
push edi
call ebx
push 0x4d779c
push esi
push 0xc2
push edi
call ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0xffffffff
push eax
push esi
push 0x437
push edi
call ebx
lea eax, [esp + 0x50]
mov dword [esp + 0x54], 0x20
push eax
push 1
push 0x444
push edi
mov dword [esp + 0x68], 0x20
call ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
push eax
push esi
push 0x437
push edi
call ebx
push 0x4040000
push 0
push 0x445
push edi
call ebx
push 0
push 0
push 0x441
push edi
call ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40d46b
movzx eax, word [eax + 2]
test ax, ax
je 0x40d46b
mov ecx, eax
mov eax, dword [0x4ef190]
mov eax, dword [eax + ecx*4]
xor ecx, ecx
cmp word [eax], 0x2a
sete cl
jmp 0x40d476
xor ecx, ecx
cmp dword [0x4f0718], ecx
setne cl
mov ebx, dword [esp + 0x2c]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
test ecx, ecx
je 0x40d495
push 0
push 0xff79
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp + 4]
cmp ecx, 9
je 0x40d514
cmp ecx, 1
mov edx, 2
mov eax, 0xb
cmove eax, edx
push eax
push ebx
call esi
cmp dword [ebp + 4], 1
mov edi, eax
jne 0x40d50b
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0xb
push ebx
call esi
push 0
push dword [esp + 0x20]
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 0
push 0xb
push 0x401
push ebx
call dword [sym.imp.USER32.dll_DefDlgProcW]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret