Function at 0x489998
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4899a0
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x489f77
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x489f2e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x125]
mov eax, dword [eax + 0x407]
push eax
call sub.user32.dll_ShowWindow
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043e8b4
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.00441104
pop edx
call fcn.00439128
mov esi, eax
push 0xa
call sub.user32.dll_GetSystemMetrics
add esi, eax
push 0x2d
call sub.user32.dll_GetSystemMetrics
add eax, eax
add esi, eax
add esi, 0x1c
add esi, 0xc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
cmp esi, eax
jle 0x489b5f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 4]
call fcn.0043f7e0
mov edi, eax
sub edi, 0x14
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x94]
mov eax, dword [ebx + 4]
cmp byte [eax + 0x634], 0
je 0x489a78
sub edi, dword [eax + 0x60d]
mov eax, dword [eax + 0x609]
sub edi, dword [eax + 0x177]
sub edi, 0xe
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x609]
cmp byte [eax + 0x52], 0
je 0x489ab4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x609]
sub edi, dword [eax + 0x12]
cmp edi, esi
jg 0x489abc
mov ebx, edi
jmp 0x489ae2
mov eax, dword [ebx + 8]
call fcn.0043f7e0
mov edx, dword [ebp - 0xc]
add eax, dword [edx + 0x2a]
mov ebx, eax
jmp 0x489ad4
mov eax, dword [ebp - 0xc]
add ebx, dword [eax + 0x2a]
cmp esi, ebx
jle 0x489adc
cmp edi, ebx
jg 0x489ace
cmp edi, ebx
jge 0x489ae2
mov ebx, edi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
cmp ebx, eax
je 0x489c46
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.0043f7fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
test eax, eax
jle 0x489c46
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
add eax, 2
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x94]
mov ebx, dword [edx + 4]
mov edx, dword [ebx + 0x609]
mov dword [edx + 0x100], eax
mov eax, ebx
call fcn.00437ae4
jmp 0x489c46
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x26]
jle 0x489c46
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x2a]
add edx, esi
cmp eax, edx
jle 0x489c46
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
mov ebx, eax
jmp 0x489bb4
sub ebx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2a]
mov edx, ebx
sub edx, eax
cmp esi, edx
jge 0x489bca
mov edx, dword [ebp - 0xc]
cmp ebx, dword [edx + 0x26]
jg 0x489bb2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x26]
cmp ebx, eax
jge 0x489bd6
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
cmp ebx, eax
je 0x489c46
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
mov edx, ebx
call fcn.0043f7fc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
test eax, eax
jle 0x489c46
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
call fcn.0043f7e0
add eax, 2
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x94]
mov ebx, dword [edx + 4]
mov edx, dword [ebx + 0x609]
mov dword [edx + 0x100], eax
mov eax, ebx
call fcn.00437ae4
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x985], 0
je 0x489d2f
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x9f4]
add edx, 0x5dc
cmp eax, edx
ja 0x489c89
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0043e8b4
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00405cf8
jne 0x489d2f
xor eax, eax
push ebp
push 0x489d25
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x489d14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
xor edx, edx
mov dword [eax + 0x5d8], edx
mov dword [eax + 0x5dc], edx
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x9f4], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0043e8b4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x9f8]
call fcn.00405cf8
je 0x489ced
mov eax, dword [ebp - 0xc]
call fcn.004a21e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489d1b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x5dc], edx
mov dword [eax + 0x5d8], 0x49b4d4
ret
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x32], 3
jne 0x489d47
xor edx, edx
mov dword [eax + 0x32], edx
call fcn.00404c38
jmp 0x489f35
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov ebx, dword [eax + 8]
cmp ebx, dword [ebp - 0x10]
je 0x489d78
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.0043eaa0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0042de44
mov edx, dword [ebp - 0x24]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x94]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x10]
jne 0x489efa
mov eax, dword [0x4cc45c]
cmp byte [eax], 0
je 0x489efa
mov eax, dword [0x4cc268]
cmp byte [eax], 0
je 0x489efa
lea edx, [ebp - 0x2c]
mov ebx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0043eaa0
cmp dword [ebp - 0x2c], 0
je 0x489efa
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0043eaa0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x489ddc
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, ebx
call fcn.0044095c
mov edi, eax
dec edi
test edi, edi
jl 0x489efa
inc edi
xor esi, esi
cmp esi, 0x32
jg 0x489efa
lea edx, [ebp - 0x3c]
mov ebx, dword [ebp - 0x10]
mov eax, ebx
call fcn.0043eaa0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00409670
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
mov edx, esi
mov eax, ebx
call fcn.00440884
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov edx, 1
call fcn.00405778
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00409670
mov edx, dword [ebp - 0x40]
pop eax
call fcn.004056a8
jne 0x489ef2
mov dword [ebx + 0x32], 3
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0043eaa0
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
call fcn.00440884
lea ecx, [ebp - 0x4c]
mov edx, esi
mov eax, ebx
call fcn.00440884
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x34]
test edi, edi
je 0x489e8e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x54]
push eax
mov edx, dword [ebp - 0x14]
inc edx
mov ecx, edi
mov eax, dword [ebp - 4]
call fcn.00405778
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 8]
call fcn.00405598
mov edx, dword [ebp - 0x50]
mov eax, ebx
call fcn.0043eb6c
lea ecx, [ebp - 0x58]
mov edx, esi
mov eax, ebx
call fcn.00440884
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x489ed6
sub eax, 4
mov eax, dword [eax]
movzx edx, word [ebp - 0x14]
movzx eax, ax
shl eax, 0x10
or edx, eax
push edx
push 0
push 0x142
push ebx
call fcn.00441224
jmp 0x489efa
inc esi
dec edi
jne 0x489df4
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x32], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489f35
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0xe4], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0xe8], edx
mov eax, dword [ebp - 0xc]
call fcn.0048e1a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489f7e
lea eax, [ebp - 0x58]
mov edx, 9
call fcn.004052a4
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004052a4
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00405a4c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004052a4
ret