Function at 0x470970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0x130b
push dword [esi + 0x18]
mov edi, ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push dword [esi + 0x18]
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [edi + 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]
mov esi, eax
test esi, esi
je 0x4709dc
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_IsIconic]
mov byte [esp + 0x11], 1
test eax, eax
je 0x4709e1
mov byte [esp + 0x11], 0
cmp byte [esp + 0x18], 0
jne 0x470a33
cmp byte [esp + 0x1c], 0
jne 0x470a33
cmp byte [ebp + 0xc], 0
je 0x4709fc
mov byte [esp + 0xf], 0
jmp 0x470a38
test esi, esi
je 0x470a33
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x470a33
push eax
mov ecx, edi
call fcn.00401590
cmp eax, 0x2af8
je 0x470a33
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x470a33
mov ecx, dword [ebp + 8]
mov al, byte [eax + 0x32]
mov byte [esp + 0xf], 0
cmp al, byte [ecx + 0x33]
je 0x470a38
mov byte [esp + 0xf], 1
mov esi, dword [ebp + 8]
lea eax, [esp + 0x50]
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 + 0x2c], eax
test eax, eax
je 0x470a68
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0x11], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
je 0x470a96
push 0
lea eax, [esp + 0x44]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetUpdateRect]
push 0
push 0
push 0xb
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], esi
cmp dword [edi + 0x5c], esi
jbe 0x470bff
mov ecx, dword [ebp + 8]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + esi*4]
mov al, byte [esi + 0x32]
cmp al, byte [ecx + 0x33]
jne 0x470bed
cmp byte [esp + 0x18], 0
movzx eax, byte [esi + 0x33]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
jne 0x470ae4
cmp eax, ecx
jne 0x470ae4
test byte [esi + 0x31], 8
mov byte [esp + 0x12], 1
je 0x470ae9
mov byte [esp + 0x12], 0
cmp byte [esp + 0x1c], 0
jne 0x470b01
cmp eax, ecx
jne 0x470b01
test byte [esi + 0x31], 0x10
jne 0x470b01
mov byte [esp + 0x10], 1
jmp 0x470b07
xor al, al
mov byte [esp + 0x10], al
push 0xfffffffffffffff0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dh, byte [esp + 0x12]
mov ecx, eax
shr ecx, 0x1b
xor dl, dl
shr eax, 0x1c
not cl
and ecx, 0xffffff01
and al, 1
mov dword [esp + 0x24], ecx
cmp dh, al
je 0x470b48
movzx eax, dh
shl eax, 2
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x24]
mov dl, 1
mov al, byte [esp + 0x10]
cmp al, cl
je 0x470b5f
movzx eax, al
push eax
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x470b63
test dl, dl
je 0x470ba8
lea eax, [esp + 0x30]
push eax
push dword [esi + 0x18]
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 0x470b9f
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 0x470ba4
mov byte [esp + 0x13], 1
mov al, byte [esp + 0x10]
cmp byte [esp + 0xf], 0
jne case.0x470bd5.1
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], ecx
jne case.0x470bd5.1
cmp byte [esp + 0x12], 0
je case.0x470bd5.1
test al, al
je case.0x470bd5.1
movzx eax, byte [esi + 0x30]
dec eax
cmp eax, 0x11
ja case.0x470bd5.4
movzx eax, byte [eax + 0x470cb0]
jmp dword [eax*4 + 0x470ca8]
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [esp + 0xf], 1
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [edi + 0x5c]
jb 0x470ab0
cmp byte [esp + 0x11], 0
je 0x470c15
push 0
push 1
push 0xb
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x470c2d
cmp byte [esp + 0x18], 0
jne 0x470c2d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0xf], 0
jne 0x470c40
mov eax, dword [ebp + 8]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
cmp byte [esp + 0x11], 0
je 0x470c9d
cmp byte [esp + 0x13], 0
je 0x470c63
push 1
push 0
push dword [edi + 0x1c]
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 0x470c7f
push 1
lea eax, [esp + 0x44]
push eax
push dword [edi + 0x1c]
call esi
push 2
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x1c]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 1
lea eax, [esp + 0x54]
push eax
push dword [edi + 0x1c]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8