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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00406ec4
lea esi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x5031be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax + 0x268], 1
xor edx, edx
push ebp
push 0x5031a1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004f8a84
add dword [esi + 0xc], 4
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.004f9ea0
lea ecx, [ebp - 0x24]
mov edx, dword [esi + 4]
mov eax, dword [esi]
call fcn.00409c94
lea edx, [ebp - 0x24]
mov eax, dword [0x67d654]
mov eax, dword [eax]
xor ecx, ecx
call fcn.0051a4c0
mov ebx, eax
mov eax, ebx
call fcn.005190b0
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x48]
jge 0x502fa6
mov eax, ebx
call fcn.005190b0
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004f80dc
mov eax, ebx
call fcn.0051907c
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x4c]
jge 0x502fc6
mov eax, ebx
call fcn.0051907c
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004f8110
mov eax, ebx
call fcn.00519098
mov edi, eax
mov eax, ebx
call fcn.0051907c
add edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
add eax, dword [esi + 4]
cmp edi, eax
jge 0x503000
mov eax, ebx
call fcn.00519098
mov edi, eax
mov eax, ebx
call fcn.0051907c
add edi, eax
mov eax, dword [ebp - 8]
sub edi, dword [eax + 0x4c]
mov dword [esi + 4], edi
mov eax, ebx
call fcn.00519064
mov edi, eax
mov eax, ebx
call fcn.005190b0
add edi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
add eax, dword [esi]
cmp edi, eax
jge 0x503038
mov eax, ebx
call fcn.00519064
mov edi, eax
mov eax, ebx
call fcn.005190b0
add edi, eax
mov eax, dword [ebp - 8]
sub edi, dword [eax + 0x48]
mov dword [esi], edi
mov eax, ebx
call fcn.00519064
cmp eax, dword [esi]
jle 0x50304c
mov eax, ebx
call fcn.00519064
mov dword [esi], eax
mov eax, ebx
call fcn.00519098
cmp eax, dword [esi + 0xc]
jle 0x503062
mov eax, ebx
call fcn.00519098
mov dword [esi + 4], eax
mov eax, dword [0x67d250]
mov eax, dword [eax]
mov edx, dword [eax + 0x170]
mov eax, dword [ebp - 8]
call fcn.004fdcb4
push 0x10
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00501360
push eax
call sub.user32.dll_SetWindowPos
call sub.KERNEL32.DLL_GetTickCount_1
mov edx, dword [ebp - 8]
sub eax, dword [edx + 0x26c]
cmp eax, 0xfa
jbe 0x5030e1
mov eax, dword [ebp - 4]
test eax, eax
je 0x5030d0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x5030d0
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406040
test eax, eax
je 0x5030d9
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x64
setl al
jmp 0x5030e3
xor eax, eax
test al, al
je 0x503160
cmp dword [0x670d20], 0
je 0x503160
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1016
call sub.user32.dll_SystemParametersInfoW
cmp dword [ebp - 0xc], 0
je 0x503160
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1018
call sub.user32.dll_SystemParametersInfoW
cmp dword [ebp - 0xc], 0
je 0x503124
mov bl, 2
jmp 0x50313f
lea edx, [ebp - 0x24]
mov eax, dword [0x684358]
call fcn.005068f0
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 4]
jle 0x50313d
xor ebx, ebx
jmp 0x50313f
mov bl, 1
movzx eax, bl
mov eax, dword [eax*4 + 0x670e28]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 8]
call fcn.00501360
push eax
call dword [0x670d20]
push 4
mov eax, dword [ebp - 8]
call fcn.00501360
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5031a8
call sub.KERNEL32.DLL_GetTickCount_1
mov edx, dword [ebp - 8]
mov dword [edx + 0x26c], eax
mov eax, dword [ebp - 8]
mov byte [eax + 0x268], 0
ret