Function at 0x46b650
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov ebp, ecx
push edi
push 0
push 0
push 0x130b
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push dword [esi + 0x18]
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0x1c]
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 bl
test eax, eax
je 0x46b6bc
push dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_IsIconic]
mov byte [esp + 0x14], 1
test eax, eax
je 0x46b6c1
mov byte [esp + 0x14], 0
cmp byte [esp + 0x18], 0
jne 0x46b73e
cmp byte [esp + 0x1c], 0
jne 0x46b73e
cmp byte [esp + 0x64], 0
je 0x46b6da
xor bl, bl
jmp 0x46b740
test bl, bl
je 0x46b73e
call dword [sym.imp.USER32.dll_GetFocus]
mov edi, eax
test edi, edi
je 0x46b73e
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
call ebx
lea esi, [eax - 3]
cmp esi, dword [ebp + 0x5c]
jb 0x46b713
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
test edi, edi
je 0x46b70e
push edi
call ebx
lea esi, [eax - 3]
cmp esi, dword [ebp + 0x5c]
jae 0x46b73a
mov eax, dword [ebp + 0x2c]
mov eax, dword [eax + esi*4]
cmp dword [eax + 0x18], edi
jne 0x46b73a
cmp esi, 0x2af8
je 0x46b73a
mov esi, dword [esp + 0x60]
test eax, eax
je 0x46b73e
mov al, byte [eax + 0x32]
cmp al, byte [esi + 0x33]
jne 0x46b73e
xor bl, bl
jmp 0x46b740
mov esi, dword [esp + 0x60]
mov bl, 1
lea eax, [esp + 0x48]
mov byte [esp + 0x64], bl
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowRect]
push str.ahk_dlg
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetPropW]
mov dword [esp + 0x24], eax
test eax, eax
je 0x46b771
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0x14], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x38], xmm0
je 0x46b79f
push 0
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_GetUpdateRect]
push 0
push 0
push 0xb
push dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
xor bh, bh
xor edi, edi
mov byte [esp + 0x15], bh
cmp dword [ebp + 0x5c], edi
jbe 0x46b8fe
mov ecx, dword [esp + 0x60]
mov eax, dword [ebp + 0x2c]
mov esi, dword [eax + edi*4]
mov al, byte [esi + 0x32]
cmp al, byte [ecx + 0x33]
jne 0x46b8f0
movzx eax, byte [esi + 0x33]
cmp eax, dword [esp + 0x20]
sete al
cmp byte [esp + 0x18], 0
mov byte [esp + 0x17], al
jne 0x46b7eb
test al, al
je 0x46b7eb
test byte [esi + 0x31], 8
mov byte [esp + 0x16], 1
je 0x46b7f0
mov byte [esp + 0x16], 0
cmp byte [esp + 0x1c], 0
jne 0x46b808
test al, al
je 0x46b808
test byte [esi + 0x31], 0x10
jne 0x46b808
mov byte [esp + 0x13], 1
jmp 0x46b80e
xor al, al
mov byte [esp + 0x13], al
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dl, byte [esp + 0x16]
mov ebx, eax
shr ebx, 0x1b
xor cl, cl
shr eax, 0x1c
not bl
and al, 1
and bl, 1
cmp dl, al
je 0x46b844
movzx eax, dl
shl eax, 2
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov cl, 1
mov al, byte [esp + 0x13]
cmp al, bl
je 0x46b85b
movzx eax, al
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x46b85f
test cl, cl
je 0x46b8a9
lea eax, [esp + 0x28]
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
lea eax, [esp + 0x4c]
push dword [esp + 0x2c]
push eax
call ebx
test eax, eax
je 0x46b899
push dword [esp + 0x34]
lea eax, [esp + 0x4c]
push dword [esp + 0x34]
push eax
call ebx
test eax, eax
jne 0x46b8a5
mov al, byte [esp + 0x13]
mov bh, 1
mov byte [esp + 0x15], bh
jmp 0x46b8ad
mov al, byte [esp + 0x13]
mov bh, byte [esp + 0x15]
mov bl, byte [esp + 0x64]
test bl, bl
jne case.0x46b8d6.1
cmp byte [esp + 0x17], bl
je case.0x46b8d6.1
cmp byte [esp + 0x16], bl
je case.0x46b8d6.1
test al, al
je case.0x46b8d6.1
movzx eax, byte [esi + 0x30]
dec eax
cmp eax, 0x11
ja case.0x46b8d6.4
movzx eax, byte [eax + 0x46b9a8]
jmp dword [eax*4 + 0x46b9a0]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
mov bl, 1
mov byte [esp + 0x64], bl
mov ecx, dword [esp + 0x60]
inc edi
cmp edi, dword [ebp + 0x5c]
jb 0x46b7b4
mov esi, dword [esp + 0x60]
cmp byte [esp + 0x14], 0
je 0x46b914
push 0
push 1
push 0xb
push dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46b92c
cmp byte [esp + 0x18], 0
jne 0x46b92c
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test bl, bl
jne 0x46b939
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [esp + 0x14], 0
je 0x46b995
test bh, bh
je 0x46b95b
push 1
push 0
push dword [ebp + 0x1c]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
cmp eax, dword [esp + 0x40]
je 0x46b977
push 1
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 0x1c]
call esi
push 2
lea eax, [esp + 0x4c]
push eax
push dword [ebp + 0x1c]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x4c]
push eax
push dword [ebp + 0x1c]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8