Function at 0x495d00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 0
push 0x130b
push dword [edi]
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xfffffffffffffff0
push dword [edi]
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [esi + 4]
mov ecx, eax
shr eax, 0x1c
shr ecx, 0x1b
not al
and eax, 0xffffff01
and cl, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
setne byte [esp + 0x12]
test eax, eax
je 0x495d73
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
mov byte [esp + 0x10], 1
test eax, eax
je 0x495d78
mov byte [esp + 0x10], 0
cmp byte [esp + 0x18], 0
jne 0x495e10
cmp byte [esp + 0x1c], 0
jne 0x495e10
cmp byte [ebp + 0xc], 0
je 0x495d9b
mov byte [esp + 0xe], 0
jmp 0x495e15
cmp byte [esp + 0x12], 0
je 0x495e10
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x495e0d
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x10]
jb 0x495de1
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
je 0x495dd8
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov eax, dword [esp + 0x14]
cmp esi, dword [eax + 0x10]
jae 0x495e0d
mov eax, dword [eax + 0x18]
mov ecx, esi
shl ecx, 6
add eax, ecx
cmp dword [eax], edi
jne 0x495e0d
cmp esi, 0x2af8
je 0x495e0d
mov edi, dword [ebp + 8]
test eax, eax
je 0x495e10
mov al, byte [eax + 6]
cmp al, byte [edi + 7]
jne 0x495e10
mov byte [esp + 0xe], 0
jmp 0x495e15
mov edi, dword [ebp + 8]
mov byte [esp + 0xe], 1
lea eax, [esp + 0x50]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push str.ahk_dlg
push dword [edi]
call dword [sym.imp.USER32.dll_GetPropA]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x495e42
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0x10], 0
xorps xmm0, xmm0
mov edi, dword [esp + 0x14]
movaps xmmword [esp + 0x40], xmm0
je 0x495e74
push 0
lea eax, [esp + 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetUpdateRect]
push 0
push 0
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [edi + 0x10], 0
mov byte [esp + 0x12], 0
mov dword [esp + 0x14], 0
jbe 0x495fea
mov ecx, dword [ebp + 8]
xor esi, esi
mov dword [esp + 0x20], esi
add esi, dword [edi + 0x18]
mov al, byte [esi + 6]
cmp al, byte [ecx + 7]
jne 0x495fc9
movzx eax, byte [esi + 7]
cmp eax, dword [esp + 0x24]
sete al
cmp byte [esp + 0x18], 0
mov byte [esp + 0x13], al
jne 0x495ec8
test al, al
je 0x495ec8
test byte [esi + 5], 8
mov byte [esp + 0x11], 1
je 0x495ecd
mov byte [esp + 0x11], 0
cmp byte [esp + 0x1c], 0
jne 0x495ee5
test al, al
je 0x495ee5
test byte [esi + 5], 0x10
jne 0x495ee5
mov byte [esp + 0xf], 1
jmp 0x495eeb
xor al, al
mov byte [esp + 0xf], al
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dh, byte [esp + 0x11]
mov ecx, eax
shr ecx, 0x1b
xor dl, dl
shr eax, 0x1c
not cl
and ecx, 0xffffff01
and al, 1
mov dword [esp + 0x28], ecx
cmp dh, al
je 0x495f2a
movzx eax, dh
shl eax, 2
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x28]
mov dl, 1
mov al, byte [esp + 0xf]
cmp al, cl
je 0x495f40
movzx eax, al
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x495f44
test dl, dl
je 0x495f88
lea eax, [esp + 0x30]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x34]
lea eax, [esp + 0x54]
push dword [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x495f7f
push dword [esp + 0x3c]
lea eax, [esp + 0x54]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x495f84
mov byte [esp + 0x12], 1
mov al, byte [esp + 0xf]
cmp byte [esp + 0xe], 0
jne case.0x495fb2.1
cmp byte [esp + 0x13], 0
je case.0x495fb2.1
cmp byte [esp + 0x11], 0
je case.0x495fb2.1
test al, al
je case.0x495fb2.1
movzx eax, byte [esi + 4]
dec eax
cmp eax, 0x11
ja case.0x495fb2.4
movzx eax, byte [eax + 0x496094]
jmp dword [eax*4 + 0x49608c]
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [esp + 0xe], 1
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
inc eax
add esi, 0x40
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
cmp eax, dword [edi + 0x10]
jb 0x495e94
mov esi, dword [esp + 0x2c]
cmp byte [esp + 0x10], 0
je 0x496000
push 0
push 1
push 0xb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x496014
cmp byte [esp + 0x18], 0
jne 0x496014
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0xe], 0
jne 0x496026
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [esp + 0x10], 0
je 0x496083
cmp byte [esp + 0x12], 0
je 0x496049
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esp + 0x40]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
cmp eax, dword [esp + 0x48]
je 0x496065
push 1
lea eax, [esp + 0x44]
push eax
push dword [edi + 4]
call esi
push 2
lea eax, [esp + 0x54]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x54]
push eax
push dword [edi + 4]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8