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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0xc8], 0
je 0x581452
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_IsIconic
test eax, eax
jne 0x581452
mov byte [0x6012f4], 1
mov eax, dword [ebx + 0x288]
test eax, eax
je 0x580d38
cmp dword [eax + 0x18], 0
jne 0x580d0d
call fcn.005c0d64
mov eax, dword [ebx + 0x288]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x7c], eax
push 0
push 0
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebx + 0x288]
call fcn.005c06e4
jmp 0x580d95
mov eax, ebx
call fcn.005abe90
mov ecx, dword [0x60234c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4ce824]
call fcn.004d4d58
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0xc], pe_nt_image_headers32
xor edx, edx
mov eax, dword [ebp - 0x7c]
call fcn.004d6cc0
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowLongW
mov eax, dword [ebx + 0xc8]
mov edi, dword [eax + 0x4c]
test edi, edi
je 0x581452
mov eax, dword [ebx + 0xc8]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x30]
pop edx
call fcn.0057dfdc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.0045cbac
call fcn.00456324
push 0
push ebx
xor ecx, ecx
mov edx, dword [ebx + 0x26c]
mov eax, dword [ebp - 0x1c]
call fcn.005805c8
cmp dword [ebx + 0x288], 0
jne 0x580e26
push 0x1fffffff
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040b00c
lea edx, [ebp - 0x9c]
mov cl, 0xff
mov eax, dword [ebp - 0x1c]
call fcn.00593238
cmp dword [ebp - 0x1c], 0
je 0x581452
mov eax, dword [ebp - 0x1c]
call fcn.0045cbac
call fcn.00456428
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
mov dword [ebp - 0x6c], eax
movzx eax, si
mov ecx, 0xc
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x68], 0x718
lea ecx, [ebp - 0x78]
xor edx, edx
xor eax, eax
call fcn.0040b03c
cmp dword [ebp - 0x10], 0
jle 0x580e81
mov byte [ebp - 0x52], 0
jmp 0x580e88
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x53], 0
mov byte [ebp - 0x51], 1
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x64], eax
cmp dword [ebx + 0x288], 0
je 0x580fcd
mov esi, dword [ebx + 0x26c]
mov eax, esi
call fcn.004d5948
mov edx, dword [ebx + 0x26c]
add eax, dword [edx + 0x4c]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.004d5928
add eax, dword [esi + 0x48]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.004d5948
push eax
mov eax, dword [ebx + 0x26c]
call fcn.004d5928
pop edx
pop ecx
call fcn.0040b00c
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x580f28
mov dl, 1
mov eax, ebx
call fcn.005a6724
mov esi, eax
mov eax, dword [ebx + 0x26c]
call fcn.005a49dc
add eax, 4
cmp esi, eax
jl 0x580f2c
xor eax, eax
jmp 0x580f2e
mov al, 1
mov byte [ebx + 0x228], al
cmp byte [ebx + 0x228], 0
je 0x580f7e
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
xor ecx, ecx
mov edx, dword [ebx + 0x288]
call fcn.005a4974
mov esi, eax
lea edx, [ebp - 0x9c]
mov eax, ebx
call fcn.005b1684
mov edi, dword [ebp - 0x98]
mov eax, dword [ebx + 0x288]
call fcn.005a4aa4
add edi, eax
add esi, edi
mov dword [ebp - 0x60], esi
jmp 0x580f8c
mov eax, dword [ebx + 0x288]
call fcn.005c0550
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
xor ecx, ecx
mov edx, dword [ebx + 0x288]
call fcn.005a4974
push eax
mov eax, dword [ebx + 0x288]
call fcn.005a4a78
mov esi, eax
pop eax
sub esi, eax
lea edx, [ebp - 0x9c]
mov eax, ebx
call fcn.005b1684
add esi, dword [ebp - 0x9c]
mov dword [ebp - 0x64], esi
jmp 0x580ffa
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindowRect
mov eax, ebx
call fcn.005a550c
mov eax, dword [ebx + 0xc4]
mov edx, dword [ebp - 0x1c]
call fcn.00580934
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x8000000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowLongW
push 0xffffffffffffffec
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindowLongW
and eax, 8
cmp eax, 8
jne 0x581084
mov dl, 3
mov eax, dword [ebp - 0x7c]
call fcn.004d70e0
xor edx, edx
mov eax, dword [ebp - 0x7c]
call fcn.004adf74
xor edx, edx
mov eax, dword [ebp - 0x7c]
call fcn.004adfa8
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowLongW
or esi, 0xffffffff
jmp 0x581099
push 3
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindow
mov esi, eax
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x5c], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindowLongW
and eax, 0x80000
cmp eax, 0x80000
je 0x5810e5
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowLongW
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0045cbac
call fcn.00457314
push eax
lea eax, [ebp - 0x70]
push eax
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
mov eax, dword [0x601f1c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x30]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
mov ecx, dword [ebp - 0x88]
sub ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x8c]
sub edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x7c]
mov edi, dword [eax]
call dword [edi + 0x98]
push 4
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 0x68]
or eax, 8
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x7c]
call fcn.004d5948
push eax
mov eax, dword [ebp - 0x7c]
call fcn.004d5928
push eax
push esi
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowPos
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x70]
call fcn.0057dfdc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
call dword [edx + 0x30]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0040b00c
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0045cbac
call fcn.00457314
xor ecx, ecx
pop edx
call fcn.00578db4
push 3
mov eax, dword [ebp - 0x58]
call fcn.0045cbac
call fcn.00457314
push eax
call sub.gdi32.dll_SetStretchBltMode
cmp dword [ebp - 0x10], 0
jle 0x581270
push ebp
call fcn.00580968
pop ecx
xor edi, edi
cmp edi, dword [ebp - 0x10]
jg 0x581269
push ebp
call fcn.00580a9c
pop ecx
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x58]
call fcn.0045cbac
call fcn.00457314
push eax
lea eax, [ebp - 0x70]
push eax
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
mov eax, dword [0x601f1c]
mov eax, dword [eax]
call eax
push ebp
call fcn.00580c5c
pop ecx
inc edi
cmp dword [ebp - 0x10], 0
jle 0x581264
call sub.kernel32.dll_GetTickCount_1
lea edx, [esi + 0xc]
cmp eax, edx
jb 0x581258
cmp edi, dword [ebp - 0x10]
jle 0x581203
movzx eax, byte [ebp - 0xc]
mov byte [ebp - 0x52], al
mov eax, dword [ebp - 0x68]
or eax, 4
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x8c]
sub eax, dword [ebp - 0x64]
push eax
push 0
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowPos
push 2
lea eax, [ebp - 0x54]
push eax
push 0x1fffffff
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0045cbac
call fcn.00457314
push eax
lea eax, [ebp - 0x70]
push eax
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
mov eax, dword [0x601f1c]
mov eax, dword [eax]
call eax
lea eax, [ebp - 0x58]
call fcn.0041b3c8
mov eax, dword [ebp - 0x5c]
push eax
push 0
call sub.user32.dll_ReleaseDC
test ebx, ebx
je 0x581452
mov byte [ebx + 0x240], 0
mov eax, dword [ebx + 0x26c]
cmp byte [eax + 0x340], 0
je 0x581316
movzx edx, byte [ebp - 0xc]
call fcn.004db5f0
push 0x61b
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowPos
mov byte [0x6012f4], 0
mov eax, dword [ebx + 0x288]
test eax, eax
je 0x581352
mov byte [eax + 0x28], 1
push 0
push 1
push 0xb
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_SendMessageW
push 0x785
push 0
push 0
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
call sub.user32.dll_RedrawWindow
mov eax, dword [ebx + 0x288]
test eax, eax
je 0x581391
mov byte [eax + 0x28], 0
lea eax, [ebp - 0x1c]
call fcn.0041b3c8
call fcn.005a4c04
test al, al
je 0x5813a9
push 0x30
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0x68]
or eax, 1
or eax, 2
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x26c]
call fcn.004b7904
push eax
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowPos
cmp dword [ebx + 0x288], 0
jne 0x5813e8
lea eax, [ebp - 0x7c]
call fcn.0041b3c8
jmp 0x58143a
xor edx, edx
mov eax, ebx
call fcn.005a573c
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x288]
call fcn.005c0bfc
push eax
mov eax, dword [ebp - 0x7c]
call fcn.004b7904
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebx + 0xc8]
call fcn.0058f8fc
mov eax, dword [eax + 0x7890]
cmp byte [eax + 0x8c], 0
je 0x58143a
mov cl, 0xff
mov dl, 1
mov eax, dword [ebx + 0x288]
call fcn.005bfa5c
cmp word [ebx + 0x82], 0
je 0x581452
xor edx, edx
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4