Function at 0x496d0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x496d14
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x496f43
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x496f07
push dword fs:[edx]
mov dword fs:[edx], esp
mov edi, dword [esi + 0x24]
test edi, edi
je 0x496d67
mov eax, dword [edi + 0x423]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x496d67
push 0
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x423]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x496d76
call fcn.0048d6f8
mov eax, ebx
cmp dword [eax + 0x2e], 3
jne 0x496d8d
xor edx, edx
mov dword [eax + 0x2e], edx
call fcn.004062ac
jmp 0x496f0e
cmp ebx, dword [esi + 0x18]
jne 0x496ef4
lea edx, [ebp - 0x18]
mov esi, ebx
mov eax, esi
call fcn.0047081c
cmp dword [ebp - 0x18], 0
je 0x496ef4
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0047081c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x496dc8
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.00472194
dec eax
test eax, eax
jl 0x496ef4
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
cmp edi, 0x32
jg 0x496ef4
lea edx, [ebp - 0x28]
mov esi, ebx
mov eax, esi
call fcn.0047081c
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0041b784
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
mov edx, edi
mov eax, esi
call fcn.004720ac
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov edx, 1
call fcn.00407d50
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0041b784
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00407d18
jne 0x496eea
mov dword [esi + 0x2e], 3
lea edx, [ebp - 8]
mov eax, esi
call fcn.0047081c
lea ecx, [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.004720ac
lea ecx, [ebp - 0x38]
mov edx, edi
mov eax, esi
call fcn.004720ac
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x496e85
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0xc]
inc edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00407d50
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.00407be0
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.0047088c
lea ecx, [ebp - 0x44]
mov edx, edi
mov eax, esi
call fcn.004720ac
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x496ece
sub eax, 4
mov eax, dword [eax]
movzx edx, word [ebp - 0xc]
movzx eax, ax
shl eax, 0x10
or edx, eax
push edx
push 0
push 0x142
push esi
call fcn.004725c4
jmp 0x496ef4
inc edi
dec dword [ebp - 0x10]
jne 0x496de1
xor eax, eax
mov dword [ebx + 0x2e], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496f0e
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496f4a
lea eax, [ebp - 0x44]
mov edx, 9
call fcn.00406ba0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret