Function at 0x497a30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
mov ebp, ecx
push edi
push 0
push 0
push 0x130b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push dword [esi]
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 4]
mov ecx, eax
shr eax, 0x1c
shr ecx, 0x1b
not al
and eax, 0xffffff01
and cl, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
setne bl
test eax, eax
je 0x497a9a
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_IsIconic]
mov byte [esp + 0x18], 1
test eax, eax
je 0x497a9f
mov byte [esp + 0x18], 0
cmp byte [esp + 0x1c], 0
jne 0x497b1f
cmp byte [esp + 0x20], 0
jne 0x497b1f
cmp byte [esp + 0x6c], 0
je 0x497ab8
xor bl, bl
jmp 0x497b21
test bl, bl
je 0x497b1f
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x497b1f
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
call ebx
lea esi, [eax - 3]
cmp esi, dword [ebp + 0x10]
jb 0x497af1
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
je 0x497aec
push edi
call ebx
lea esi, [eax - 3]
cmp esi, dword [ebp + 0x10]
jae 0x497b1b
mov eax, dword [ebp + 0x18]
mov ecx, esi
shl ecx, 6
add eax, ecx
cmp dword [eax], edi
jne 0x497b1b
cmp esi, 0x2af8
je 0x497b1b
mov esi, dword [esp + 0x68]
test eax, eax
je 0x497b1f
mov al, byte [eax + 6]
cmp al, byte [esi + 7]
jne 0x497b1f
xor bl, bl
jmp 0x497b21
mov esi, dword [esp + 0x68]
mov bl, 1
lea eax, [esp + 0x50]
mov byte [esp + 0x6c], bl
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push str.ahk_dlg
push dword [esi]
call dword [sym.imp.USER32.dll_GetPropW]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x497b50
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0x18], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x40], xmm0
je 0x497b7e
push 0
lea eax, [esp + 0x44]
push eax
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetUpdateRect]
push 0
push 0
push 0xb
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor bh, bh
xor edi, edi
mov byte [esp + 0x19], bh
cmp dword [ebp + 0x10], edi
jbe 0x497ced
mov ecx, dword [esp + 0x68]
xor esi, esi
mov dword [esp + 0x24], esi
nop dword [eax]
add esi, dword [ebp + 0x18]
mov al, byte [esi + 6]
cmp al, byte [ecx + 7]
jne 0x497cd4
movzx eax, byte [esi + 7]
cmp eax, dword [esp + 0x28]
sete al
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x1b], al
jne 0x497bd4
test al, al
je 0x497bd4
test byte [esi + 5], 8
mov byte [esp + 0x1a], 1
je 0x497bd9
mov byte [esp + 0x1a], 0
cmp byte [esp + 0x20], 0
jne 0x497bf1
test al, al
je 0x497bf1
test byte [esi + 5], 0x10
jne 0x497bf1
mov byte [esp + 0x17], 1
jmp 0x497bf7
xor al, al
mov byte [esp + 0x17], al
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dl, byte [esp + 0x1a]
mov ebx, eax
shr ebx, 0x1b
xor cl, cl
shr eax, 0x1c
not bl
and al, 1
and bl, 1
cmp dl, al
je 0x497c2b
movzx eax, dl
shl eax, 2
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov cl, 1
mov al, byte [esp + 0x17]
cmp al, bl
je 0x497c41
movzx eax, al
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x497c45
test cl, cl
je 0x497c8e
lea eax, [esp + 0x30]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x34]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
lea eax, [esp + 0x54]
push dword [esp + 0x34]
push eax
call ebx
test eax, eax
je 0x497c7e
push dword [esp + 0x3c]
lea eax, [esp + 0x54]
push dword [esp + 0x3c]
push eax
call ebx
test eax, eax
jne 0x497c8a
mov al, byte [esp + 0x17]
mov bh, 1
mov byte [esp + 0x19], bh
jmp 0x497c92
mov al, byte [esp + 0x17]
mov bh, byte [esp + 0x19]
mov bl, byte [esp + 0x6c]
test bl, bl
jne case.0x497cbb.1
cmp byte [esp + 0x1b], bl
je case.0x497cbb.1
cmp byte [esp + 0x1a], bl
je case.0x497cbb.1
test al, al
je case.0x497cbb.1
movzx eax, byte [esi + 4]
dec eax
cmp eax, 0x11
ja case.0x497cbb.4
movzx eax, byte [eax + 0x497d98]
jmp dword [eax*4 + 0x497d90]
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
mov bl, 1
mov byte [esp + 0x6c], bl
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x24]
inc edi
add esi, 0x40
mov dword [esp + 0x24], esi
cmp edi, dword [ebp + 0x10]
jb 0x497ba0
mov esi, dword [esp + 0x68]
cmp byte [esp + 0x18], 0
je 0x497d03
push 0
push 1
push 0xb
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x497d1b
cmp byte [esp + 0x1c], 0
jne 0x497d1b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test bl, bl
jne 0x497d27
push dword [esi]
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [esp + 0x18], 0
je 0x497d83
test bh, bh
je 0x497d49
push 1
push 0
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8
mov eax, dword [esp + 0x40]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
cmp eax, dword [esp + 0x48]
je 0x497d65
push 1
lea eax, [esp + 0x44]
push eax
push dword [ebp + 4]
call esi
push 2
lea eax, [esp + 0x54]
push eax
push dword [ebp + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x54]
push eax
push dword [ebp + 4]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 8