Function at 0x5035b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x50394b
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x1a]
mov edx, dword [ebp + 8]
movzx edx, byte [edx + 0x3c]
add eax, edx
mov edx, dword [0x567470]
movzx edx, word [edx + 0x68]
cmp eax, edx
jbe 0x5035f4
mov eax, dword [ebp + 8]
cmp byte [eax + 0x17], 0
jne 0x50393c
mov eax, dword [ebp + 8]
cmp byte [eax + 0x17], 0
jne 0x503690
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x1a
jne 0x503621
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x569154]
cmp eax, 0x2710
jb 0x50394b
mov eax, dword [ebp + 8]
cmp word [eax + 8], 0x1b
jne 0x503641
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x569158]
cmp eax, 0xbb8
jb 0x50394b
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [0x569150]
cmp eax, 0x1f4
jbe 0x50394b
call sub.kernel32.dll_GetTickCount_1
mov dword [0x569150], eax
xor eax, eax
mov dword [0x5691d8], eax
push 0
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
push eax
push 0
mov eax, dword [0x567470]
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.00508160
jmp 0x50394b
mov eax, dword [0x5691b4]
mov dword [0x5691b8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00512fbc
cmp byte [0x580972], 1
jne 0x5037a4
cmp byte [0x56d14b], 0
jbe 0x5037a4
push ebp
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
call fcn.00503550
pop ecx
test al, al
je 0x5037a4
mov edx, dword [0x5691bc]
mov eax, dword [0x567408]
call fcn.004edf48
test al, al
jne 0x5036f0
xor eax, eax
mov dword [0x5691bc], eax
cmp dword [0x5691bc], 0
je 0x503732
mov eax, dword [0x5691bc]
cmp byte [eax + 0x30], 0
jne 0x50372b
mov eax, dword [0x5691bc]
cmp byte [eax + 0x89], 0
je 0x50372b
mov eax, dword [0x5691bc]
mov edx, dword [eax + 0x44]
mov eax, dword [0x567470]
mov eax, dword [eax + 0x44]
call fcn.0040560c
test eax, eax
jle 0x503732
xor eax, eax
mov dword [0x5691bc], eax
cmp dword [0x5691b8], 0
je 0x50376d
mov eax, dword [0x5691b8]
cmp byte [eax + 0x30], 0
jne 0x50376d
cmp byte [0x56d14b], 0
jbe 0x50376d
cmp byte [0x580977], 0
je 0x503761
cmp dword [0x5691bc], 0
jne 0x50376d
mov eax, dword [0x5691b8]
mov dword [0x5691bc], eax
jmp 0x5037a4
mov eax, dword [0x5691bc]
mov dword [0x5691b8], eax
cmp dword [0x5691b8], 0
je 0x5037a4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x5691b8]
movzx ecx, word [eax + 0xa]
mov eax, dword [0x5691b8]
movzx edx, word [eax + 8]
mov eax, dword [0x567408]
call fcn.004ed44c
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, 0xaf
mov eax, 0x186
call fcn.004f25b4
mov dword [ebp - 0x10], eax
mov edx, dword [0x5691b8]
mov eax, dword [0x567408]
call fcn.004edf48
test al, al
jne 0x5037d8
xor eax, eax
mov dword [0x5691b8], eax
cmp dword [0x5691b8], 0
jne 0x503800
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [0x567408]
call fcn.004ed4cc
xor eax, eax
mov dword [ebp - 0x1c], eax
jmp 0x503823
mov eax, dword [0x5691b8]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5691b8]
movzx eax, word [eax + 0xe]
mov dword [ebp - 0x18], eax
mov eax, dword [0x5691b8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.00509a44
test al, al
je 0x50394b
mov eax, dword [ebp - 4]
call fcn.005099e8
test al, al
je 0x50394b
call sub.kernel32.dll_GetTickCount_1
mov dword [0x569150], eax
mov eax, 0x24
call fcn.00402f08
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 0x24
call fcn.00403984
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x18]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 8]
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
add eax, 0xc8
mov dword [0x5691d8], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
cmp eax, 0x1f
ja case.0x5038ab.0
mov al, byte [eax + 0x5038b2]
jmp dword [eax*4 + 0x5038d2]
call sub.kernel32.dll_GetTickCount_1
mov dword [0x569160], eax
xor eax, eax
mov dword [0x5691dc], eax
cmp dword [0x5691b8], 0
je 0x503915
mov eax, dword [0x5691b8]
cmp byte [eax + 0x12], 0
jne 0x503915
mov eax, 0x44c
call fcn.004033b4
add eax, 0x12c
mov dword [0x5691dc], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x14]
mov dx, 0xbc9
mov eax, dword [0x567470]
call fcn.004f3e30
jmp 0x50394b
mov edx, 0x50395c
mov eax, dword [0x5673f8]
call fcn.004aeca8
mov esp, ebp
pop ebp
ret 4