Function at 0x4af020
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4af029
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov word [ebp - 3], dx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00404a74
xor eax, eax
push ebp
push 0x4af6a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408e1c
mov edx, dword [ebp - 0x14]
mov eax, 0x4af6c0
call fcn.00404bc8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x4af08b
lea eax, [ebp - 0x14]
mov ecx, 0x2800
mov edx, dword [ebp - 0x18]
call fcn.00404b24
mov eax, dword [ebp - 0x14]
call fcn.0046dd44
test al, al
je 0x4af1a0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
call fcn.00409b44
mov eax, dword [ebp - 0x20]
mov edx, 0x4af6cc
call fcn.004049d0
je 0x4af0d3
mov eax, dword [ebp - 0x20]
mov edx, 0x4af6dc
call fcn.004049d0
je 0x4af0d3
mov eax, dword [ebp - 0x20]
mov edx, 0x4af6ec
call fcn.004049d0
jne 0x4af11a
xor eax, eax
push ebp
push 0x4af10b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x168]
mov edx, dword [ebp - 0x14]
call fcn.00426334
mov byte [ebp - 0x19], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af209
mov eax, dword [ebp - 0x20]
mov edx, 0x4af6fc
call fcn.004049d0
je 0x4af15a
mov eax, dword [ebp - 0x20]
mov edx, 0x4af70c
call fcn.004049d0
je 0x4af15a
mov eax, dword [ebp - 0x20]
mov edx, 0x4af71c
call fcn.004049d0
je 0x4af15a
mov eax, dword [ebp - 0x20]
mov edx, 0x4af72c
call fcn.004049d0
jne 0x4af209
xor eax, eax
push ebp
push 0x4af194
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.00404e90
mov edx, dword [ebp - 0x24]
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
call fcn.004ab5ac
mov byte [ebp - 0x19], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af209
lea eax, [ebp - 0x28]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 0x14]
call fcn.00404ae4
mov eax, dword [ebp - 0x28]
mov edx, 0x4af73c
call fcn.004049d0
jne 0x4af209
xor eax, eax
push ebp
push 0x4af1ff
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
call fcn.00404e90
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
call fcn.004ab5ac
mov byte [ebp - 0x19], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af209
cmp byte [ebp - 1], 0
je 0x4af222
mov ax, word [ebp - 3]
or ax, word [0x53d8f4]
mov word [0x53d8f4], ax
jmp 0x4af235
mov ax, word [ebp - 3]
not eax
and ax, word [0x53d8f4]
mov word [0x53d8f4], ax
mov ax, word [0x4af744]
cmp ax, word [0x53d8f4]
setne byte [ebp - 1]
mov dl, byte [ebp - 1]
mov eax, dword [0x54339c]
call fcn.00442c5c
push 0
lea edx, [ebp - 0x30]
mov eax, 0x7e
call fcn.004ab8a8
mov eax, dword [ebp - 0x30]
call fcn.00404a84
push eax
call sub.user32.dll_FindWindowA
mov dword [ebp - 0x10], eax
cmp byte [ebp - 1], 0
je 0x4af4ea
mov eax, dword [0x540cb0]
cmp dword [eax], 0
jle 0x4af290
test byte [0x53d8f4], 8
je 0x4af2a7
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x308]
mov edx, 0xff
call fcn.004ab750
jmp 0x4af2cb
mov eax, dword [0x540cb0]
mov eax, dword [eax]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov edx, 0xff
sub edx, eax
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x308]
call fcn.004ab750
test byte [0x53d8f4], 8
je 0x4af336
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x304]
mov dl, 1
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2fc]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f0]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
xor edx, edx
call fcn.00456ca0
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
mov edx, 0xfffff448
call fcn.00456efc
jmp 0x4af4a5
cmp byte [ebp - 0x19], 1
jne 0x4af39e
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2fc]
mov dl, 1
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f0]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
xor edx, edx
call fcn.00456ca0
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
mov edx, 0xfffff448
call fcn.00456efc
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.004576ac
jmp 0x4af4a5
cmp byte [ebp - 0x19], 0
jne 0x4af3f1
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2fc]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f0]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
mov dl, 5
call fcn.00456ca0
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.004576ac
jmp 0x4af4a5
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2fc]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f0]
mov dl, 1
call fcn.004576ac
cmp dword [ebp - 8], 0
je 0x4af44c
mov al, byte [0x4af748]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x4af754
mov edx, 0x4af760
mov eax, dword [ebp - 8]
call fcn.0040d9ec
mov edx, dword [ebp - 0x34]
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f0]
call fcn.004577bc
jmp 0x4af46c
lea edx, [ebp - 0x38]
mov eax, 0xf
call fcn.004ac138
mov edx, dword [ebp - 0x38]
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f0]
call fcn.004577bc
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
xor edx, edx
call fcn.00456ca0
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
mov edx, 0xfffff448
call fcn.00456efc
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x304]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x540944]
mov eax, dword [eax]
xor edx, edx
call fcn.00473034
mov ebx, eax
push 0x40
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [0x54339c]
call fcn.0045de44
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4af624
lea ecx, [ebp - 0x3c]
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
mov edx, 0xd3
call fcn.004a821c
mov eax, dword [ebp - 0x3c]
push eax
lea edx, [ebp - 0x44]
mov eax, 0x63
call fcn.004ab8a8
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call fcn.00404e90
mov edx, dword [ebp - 0x40]
pop eax
call fcn.00404fc8
je 0x4af594
mov dword [ebp - 0x18], 3
xor eax, eax
push ebp
push 0x4af57b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x4c]
mov eax, 0x63
call fcn.004ab8a8
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
call fcn.00404e90
mov edx, dword [ebp - 0x48]
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x300]
call fcn.004ab5ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4af594
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f4]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.004576ac
mov eax, dword [0x54339c]
call fcn.004579ec
mov eax, dword [0x540944]
mov eax, dword [eax]
xor edx, edx
call fcn.00473034
mov ebx, eax
push 0x83
mov eax, dword [ebx + 0xc]
sub eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
push eax
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [0x54339c]
call fcn.0045de44
push eax
call sub.user32.dll_SetWindowPos
push 0x47
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_SetWindowPos
mov eax, 0xc8
call fcn.004d91e4
push 0xffffffffffffffff
push 0
push 0
call sub.user32.dll_InvalidateRect
push 0
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 1]
push eax
push 0x61
call sub.user32.dll_SystemParametersInfoA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af6ae
lea eax, [ebp - 0x4c]
call fcn.004045b8
lea eax, [ebp - 0x48]
call fcn.00404cf0
lea eax, [ebp - 0x44]
call fcn.004045b8
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00404d08
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004045dc
lea eax, [ebp - 0x2c]
call fcn.00404cf0
lea eax, [ebp - 0x28]
call fcn.004045b8
lea eax, [ebp - 0x24]
call fcn.00404cf0
lea eax, [ebp - 0x20]
call fcn.004045b8
lea eax, [ebp - 0x14]
call fcn.004045b8
lea eax, [ebp - 8]
call fcn.004045b8
ret