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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00422c89
test eax, eax
je 0x42f9bd
call fcn.00422c47
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x314], eax
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x324], ecx
lea edx, [ebp - 0x104]
mov dword [ebp - 0x320], edx
cmp dword [ebp - 0x310], 0x2733
je 0x42f796
cmp dword [ebp - 0x310], 0x2734
je 0x42f796
mov eax, dword [ebp + 0xc]
push eax
call fcn.00422c79
or eax, 0xffffffff
jmp 0x42f9bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], 0
mov ecx, 1
test ecx, ecx
je 0x42f9b2
mov edx, dword [ebp - 0x324]
mov dword [edx], 0
mov eax, dword [ebp - 0x324]
cmp dword [eax], 0x40
jae 0x42f807
mov ecx, dword [ebp - 0x324]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x324]
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4 + 4], ecx
mov edx, dword [ebp - 0x324]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x324]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x42f7d4
mov eax, dword [ebp - 0x314]
mov dword [eax], 0
mov ecx, dword [ebp - 0x320]
mov dword [ecx], 0
mov edx, dword [ebp - 0x320]
mov dword [edx], 0
mov eax, dword [ebp - 0x320]
cmp dword [eax], 0x40
jae 0x42f864
mov ecx, dword [ebp - 0x320]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x320]
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4 + 4], ecx
mov edx, dword [ebp - 0x320]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x320]
mov dword [ecx], eax
xor edx, edx
test edx, edx
jne 0x42f831
lea eax, [ebp - 0x31c]
push eax
mov ecx, dword [ebp - 0x320]
push ecx
mov edx, dword [ebp - 0x324]
push edx
mov eax, dword [ebp - 0x314]
push eax
push 0
call fcn.00459660
add esp, 0x14
mov ecx, dword [ebp - 0x320]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00422c65
test eax, eax
je 0x42f90b
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
je 0x42f8c4
mov ecx, 1
test ecx, ecx
je 0x42f8c4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x32c], eax
jmp 0x42f8ce
mov dword [ebp - 0x32c], 0xfffffff1
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x32c]
mov dword [ecx + 0x14], edx
push 0
push 0xff
mov eax, dword [ebp + 0x10]
push eax
push 0x274d
push 0xa
push 0xfffffffffffffff1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404a80
add esp, 0x1c
mov edx, dword [ebp + 0xc]
push edx
call fcn.00422c79
or eax, 0xffffffff
jmp 0x42f9bf
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00422c65
test eax, eax
je 0x42f926
xor eax, eax
jmp 0x42f9bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x328]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x6c]
mov edx, dword [ecx + 0x1c]
imul edx, edx, 0x3cf
cmp eax, edx
jbe 0x42f9ad
mov eax, dword [ebp + 0xc]
push eax
call fcn.00422c79
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x42f96b
xor edx, edx
test edx, edx
je 0x42f96b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x330], ecx
jmp 0x42f975
mov dword [ebp - 0x330], 0xffffffa0
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x330]
mov dword [edx + 0x14], eax
push 0
push 0xff
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__errno]
mov edx, dword [eax]
push edx
push 0x1eb
push 0xffffffffffffffa0
mov eax, dword [ebp + 8]
push eax
call fcn.00404a80
add esp, 0x1c
or eax, 0xffffffff
jmp 0x42f9bf
jmp 0x42f7bb
cmp dword [ebp + 0xc], 0xffffffff
jne 0x42f9bd
or eax, 0xffffffff
jmp 0x42f9bf
xor eax, eax
mov esp, ebp
pop ebp
ret