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

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x1c0
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
lea rdi, [rbp + 0xb0]
xor eax, eax
stosq qword [rdi], rax
stosq qword [rdi], rax
stosq qword [rdi], rax
lea rdi, [rbp + 0x80]
xor eax, eax
stosq qword [rdi], rax
stosq qword [rdi], rax
stosq qword [rdi], rax
mov qword [rbp + 0x1a0], 0
mov qword [rbp + 0x198], 0
mov qword [rbp + 0x190], 0
mov qword [rbp + 0x188], 0
mov qword [rbp + 0x180], 0
mov qword [rbp + 0x178], 0
mov qword [rbp + 0x170], 0
mov qword [rbp + 0x1b8], 0
mov qword [rbp + 0x1b0], 0
mov qword [rbp + 0x160], 0
mov qword [rbp + 0x158], 0
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x138], 0
mov qword [rbp + 0x130], 0
mov qword [rbp + 0x128], 0
mov qword [rbp + 0xc8], rbp
mov qword [rbp + 0x1e0], rcx
mov qword [rbp + 0x1e8], rdx
mov rcx, qword [rbp + 0x1e8]
call fcn.0040fa70
nop
mov dword [rbp + 0x1a8], 0
nop
lea rcx, [rbp + 0x198]
call fcn.0040f960
mov rcx, qword [rbp + 0x1e8]
mov rdx, rax
mov rax, qword [rbp + 0x1e8]
mov rax, qword [rax]
call qword [rax + 0x90]
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x124]
test eax, 0x80000000
sete al
mov byte [rbp + 0x123], al
cmp byte [rbp + 0x123], 0
je 0x4fb033
cmp qword [rbp + 0x198], 0
je 0x4fb033
lea rcx, [rbp + 0x190]
call fcn.0040f960
mov rcx, qword [rbp + 0x198]
mov rdx, qword [0x00536a80]
mov r8, rax
mov rax, qword [rbp + 0x198]
mov rax, qword [rax]
call qword [rax]
mov dword [rbp + 0x11c], eax
mov eax, dword [rbp + 0x11c]
test eax, 0x80000000
sete al
mov byte [rbp + 0x11b], al
cmp byte [rbp + 0x11b], 0
je 0x4fb033
cmp qword [rbp + 0x190], 0
je 0x4fb033
lea rcx, [rbp + 0x188]
call fcn.0040f960
mov rcx, qword [rbp + 0x198]
mov rdx, qword [0x005366f0]
mov r8, rax
mov rax, qword [rbp + 0x198]
mov rax, qword [rax]
call qword [rax]
mov dword [rbp + 0x114], eax
mov eax, dword [rbp + 0x114]
test eax, 0x80000000
sete al
mov byte [rbp + 0x113], al
cmp byte [rbp + 0x113], 0
je 0x4fb033
cmp qword [rbp + 0x188], 0
je 0x4fb033
lea rcx, [rbp + 0x180]
call fcn.0040f960
mov rcx, qword [rbp + 0x190]
mov rdx, rax
mov rax, qword [rbp + 0x190]
mov rax, qword [rax]
call qword [rax + 0x48]
mov dword [rbp + 0x10c], eax
mov eax, dword [rbp + 0x10c]
test eax, 0x80000000
sete al
mov byte [rbp + 0x10b], al
cmp byte [rbp + 0x10b], 0
je 0x4fb033
cmp qword [rbp + 0x180], 0
je 0x4fb033
lea rcx, [rbp + 0x170]
call fcn.0040f960
mov rcx, qword [rbp + 0x180]
mov rdx, qword [0x00536b60]
mov r8, rax
mov rax, qword [rbp + 0x180]
mov rax, qword [rax]
call qword [rax]
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
test eax, 0x80000000
sete al
mov byte [rbp + 0x103], al
cmp byte [rbp + 0x103], 0
je 0x4fb033
cmp qword [rbp + 0x170], 0
je 0x4fb033
lea rcx, [rbp + 0x1b0]
call fcn.0040f960
mov rcx, qword [rbp + 0x170]
mov rdx, rax
mov rax, qword [rbp + 0x170]
mov rax, qword [rax]
call qword [rax + 0x148]
mov dword [rbp + 0xfc], eax
mov eax, dword [rbp + 0xfc]
test eax, 0x80000000
sete al
mov byte [rbp + 0xfb], al
cmp byte [rbp + 0xfb], 0
je 0x4fb033
cmp qword [rbp + 0x1b0], 0
je 0x4fb033
lea rcx, [rbp + 0x158]
call fcn.0040f960
mov rcx, qword [rbp + 0x188]
lea rdx, [0x004fb3f0]
mov r8, rax
mov rax, qword [rbp + 0x188]
mov rax, qword [rax]
call qword [rax + 0x168]
mov rcx, qword [rbp + 0x158]
lea rdx, [rbp + 0x154]
mov rax, qword [rbp + 0x158]
mov rax, qword [rax]
call qword [rax + 0x48]
mov eax, dword [rbp + 0x154]
sub eax, 1
mov dword [rbp + 0x150], eax
cmp dword [rbp + 0x150], 0
jl 0x4fa9bd
lea rcx, [rbp + 0x178]
call fcn.0040f960
lea rcx, [rbp + 0x138]
call fcn.0040f960
lea rcx, [rbp + 0xb0]
mov edx, dword [rbp + 0x150]
mov r8, 0xfffffffffffffffc
call fcn.00440a60
lea rdi, [rbp + 0x98]
lea rsi, [rbp + 0xb0]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rcx, [rbp + 0x80]
xor rdx, rdx
mov r8d, 1
call fcn.00440a60
lea rdi, [rbp + 0x68]
lea rsi, [rbp + 0x80]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rcx, [rbp + 0x1a0]
call fcn.0040f960
mov rcx, qword [rbp + 0x158]
lea rdx, [rbp + 0x98]
lea r8, [rbp + 0x68]
mov r9, rax
mov rax, qword [rbp + 0x158]
mov rax, qword [rax]
call qword [rax + 0x58]
mov dword [rbp + 0xf4], eax
mov eax, dword [rbp + 0xf4]
test eax, 0x80000000
sete al
mov byte [rbp + 0xf3], al
cmp byte [rbp + 0xf3], 0
je 0x4fa9a9
lea rcx, [rbp + 0x138]
call fcn.0040f960
mov rcx, qword [rbp + 0x1a0]
mov rdx, qword [0x00536728]
mov r8, rax
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
call qword [rax]
mov dword [rbp + 0xec], eax
mov eax, dword [rbp + 0xec]
test eax, 0x80000000
sete al
mov byte [rbp + 0xeb], al
cmp byte [rbp + 0xeb], 0
je 0x4fa918
lea rcx, [rbp + 0x140]
call fcn.0040f960
mov rcx, qword [rbp + 0x138]
xor rdx, rdx
mov r8, rax
mov rax, qword [rbp + 0x138]
mov rax, qword [rax]
call qword [rax + 0x80]
lea rcx, [rbp + 0x140]
call fcn.0040f960
jmp 0x4fa9a9
lea rcx, [rbp + 0x178]
call fcn.0040f960
mov rcx, qword [rbp + 0x1a0]
mov rdx, qword [0x00536418]
mov r8, rax
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
call qword [rax]
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
test eax, 0x80000000
sete al
mov byte [rbp + 0xe3], al
cmp byte [rbp + 0xe3], 0
je 0x4fa9a9
lea rcx, [rbp + 0x160]
call fcn.0040aa80
mov rcx, qword [rbp + 0x178]
mov rdx, rax
mov rax, qword [rbp + 0x178]
mov rax, qword [rax]
call qword [rax + 0x1d0]
mov rcx, qword [rbp + 0x178]
mov rdx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x178]
mov rax, qword [rax]
call qword [rax + 0x1e8]
sub dword [rbp + 0x150], 1
cmp dword [rbp + 0x150], 0xffffffff
jne 0x4fa7cf
nop
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0x108]
mov rcx, rbp
neg rcx
cmp dword [rax + rcx], 0
jge 0x4faa28
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
add rcx, 0x290
call fcn.0040a9e0
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
add rcx, 0x298
call fcn.0040a9e0
jmp 0x4fb033
lea rcx, [rbp + 0x1b8]
call fcn.0040f960
mov rcx, qword [rbp + 0x1b0]
mov rdx, rax
mov rax, qword [rbp + 0x1b0]
mov rax, qword [rax]
call qword [rax + 0x58]
call sub.kernel32.dll_GetTickCount_1
mov dword [rbp + 0x16c], eax
mov rcx, qword [rbp + 0x1b0]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xd8]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x1ae]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x1b0]
mov rax, qword [rax]
call qword [rax + 0xc8]
jmp 0x4faf95
nop
lea rcx, [rbp + 0x60]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xd8]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
call fcn.0040c110
lea rcx, [rbp + 0x50]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf8]
mov r8, rbp
neg r8
mov r8, qword [rax + r8]
call fcn.004f8260
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
call fcn.00425ea0
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x58]
call fcn.0040c5d0
test eax, eax
je 0x4fab37
mov dword [rbp + 0x1a8], 0xffffffff
xor rcx, rcx
mov rdx, qword [rbp + 0xc8]
call fcn.004fb140
jmp 0x4fb033
lea rcx, [rbp + 0x130]
call fcn.0040f960
mov rcx, qword [rbp + 0x180]
mov rdx, qword [0x00536c48]
mov r8, rax
mov rax, qword [rbp + 0x180]
mov rax, qword [rax]
call qword [rax]
mov dword [rbp + 0xdc], eax
mov eax, dword [rbp + 0xdc]
test eax, 0x80000000
sete al
mov byte [rbp + 0xdb], al
cmp byte [rbp + 0xdb], 0
jne 0x4fab98
xor rcx, rcx
mov rdx, qword [rbp + 0xc8]
call fcn.004fb140
jmp 0x4faf95
lea rcx, [rbp + 0x128]
call fcn.0040f960
mov rcx, qword [rbp + 0x130]
mov rdx, rax
mov rax, qword [rbp + 0x130]
mov rax, qword [rax]
call qword [rax + 0x308]
mov dword [rbp + 0xd4], eax
mov eax, dword [rbp + 0xd4]
test eax, 0x80000000
sete al
mov byte [rbp + 0xd3], al
cmp byte [rbp + 0xd3], 0
jne 0x4fabf6
xor rcx, rcx
mov rdx, qword [rbp + 0xc8]
call fcn.004fb140
jmp 0x4faf95
cmp qword [rbp + 0x128], 0
jne 0x4fac14
xor rcx, rcx
mov rdx, qword [rbp + 0xc8]
call fcn.004fb140
jmp 0x4faf95
lea rcx, [rbp + 0x160]
call fcn.0040aa80
mov rcx, qword [rbp + 0x128]
mov rdx, rax
mov rax, qword [rbp + 0x128]
mov rax, qword [rax]
call qword [rax + 0x420]
mov rcx, qword [rbp + 0x160]
lea rdx, [0x004fb43c]
call fcn.0040be40
test eax, eax
jne 0x4fac65
xor rcx, rcx
mov rdx, qword [rbp + 0xc8]
call fcn.004fb140
jmp 0x4faf95
lea rcx, [rbp + 0x160]
call fcn.0040aa80
mov rcx, qword [rbp + 0x128]
mov rdx, rax
mov rax, qword [rbp + 0x128]
mov rax, qword [rax]
call qword [rax + 0x430]
mov rcx, qword [rbp + 0x160]
lea rdx, [0x004fb44c]
call fcn.0040be40
test eax, eax
jne 0x4facb6
xor rcx, rcx
mov rdx, qword [rbp + 0xc8]
call fcn.004fb140
jmp 0x4faf95
mov rcx, qword [rbp + 0x160]
lea rdx, [0x004fb460]
call fcn.0040be40
test eax, eax
jne 0x4facf1
mov rcx, qword [rbp + 0x180]
call fcn.004f83f0
test al, al
je 0x4facf1
xor rcx, rcx
mov rdx, qword [rbp + 0xc8]
call fcn.004fb140
jmp 0x4faf95
add dword [rbp + 0x1a8], 1
lea rcx, [rbp + 0x160]
call fcn.0040aa80
mov rcx, qword [rbp + 0x1b0]
mov rdx, rax
mov rax, qword [rbp + 0x1b0]
mov rax, qword [rax]
call qword [rax + 0x48]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xd7]
mov rcx, rbp
neg rcx
cmp byte [rax + rcx], 0
je 0x4fae3c
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xd7]
mov rcx, rbp
neg rcx
mov byte [rax + rcx], 0
lea rcx, [rbp + 0x160]
mov edx, 3
lea r8, [0x004fb474]
mov r9, qword [rbp + 0x160]
lea rax, [0x004fb518]
mov qword [rsp + 0x20], rax
call fcn.0040bd40
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rcx, rbp
neg rcx
mov rcx, qword [rax + rcx]
add rcx, 0x290
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xd8]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
call fcn.0040c110
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov dword [rax + 0x2a0], 0
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov dword [rax + 0x2a4], 1
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rcx, rbp
neg rcx
mov rax, qword [rax + rcx]
mov rcx, qword [rbp + 0x1e0]
lea rcx, [rcx + rbp + 0xd0]
mov rdx, rbp
neg rdx
mov ecx, dword [rcx + rdx]
mov dword [rax + 0x2a8], ecx
jmp 0x4faeb1
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0x100]
mov rcx, rbp
neg rcx
cmp byte [rax + rcx], 0
je 0x4fae85
lea rcx, [rbp + 0x160]
mov edx, 3
lea r8, [0x004fb52c]
mov r9, qword [rbp + 0x160]
lea rax, [0x004fb518]
mov qword [rsp + 0x20], rax
call fcn.0040bd40
jmp 0x4faeb1
lea rcx, [rbp + 0x160]
mov edx, 3
lea r8, [0x004fb5d0]
mov r9, qword [rbp + 0x160]
lea rax, [0x004fb518]
mov qword [rsp + 0x20], rax
call fcn.0040bd40
mov rcx, qword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x160]
mov rax, qword [rbp + 0x1b0]
mov rax, qword [rax]
call qword [rax + 0xa8]
call sub.kernel32.dll_GetTickCount_1
mov ecx, dword [rbp + 0x16c]
add ecx, 0x1f4
cmp ecx, eax
jae 0x4faf0a
jmp 0x4faef6
call sub.kernel32.dll_GetCurrentThread
mov rcx, rax
xor rdx, rdx
call sub.kernel32.dll_WaitForSingleObject
call fcn.004ade00
test al, al
jne 0x4faee6
call sub.kernel32.dll_GetTickCount_1
mov dword [rbp + 0x16c], eax
nop
mov rcx, qword [rbp + 0x1b8]
lea rdx, [0x004fb630]
mov r8, qword [rbp + 0x1b0]
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax]
call qword [rax + 0xb8]
lea rcx, [rbp + 0x1b0]
call fcn.0040f960
mov rcx, qword [rbp + 0x1b8]
mov rdx, rax
mov rax, qword [rbp + 0x1b8]
mov rax, qword [rax]
call qword [rax + 0x58]
mov rcx, qword [rbp + 0x1b0]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xd8]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x1ae]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x1b0]
mov rax, qword [rax]
call qword [rax + 0xc8]
cmp word [rbp + 0x1ae], 0
jne 0x4faa9d
lea rcx, [rbp + 0x48]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xd8]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
call fcn.0040c110
lea rcx, [rbp + 0x38]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf0]
mov rdx, rbp
neg rdx
mov rdx, qword [rax + rdx]
mov rax, qword [rbp + 0x1e0]
lea rax, [rax + rbp + 0xf8]
mov r8, rbp
neg r8
mov r8, qword [rax + r8]
call fcn.004f8260
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
call fcn.00425ea0
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x40]
call fcn.0040c5d0
test eax, eax
je 0x4fb032
mov dword [rbp + 0x1a8], 0xffffffff
jmp 0x4fb032
nop
lea rcx, [rbp + 0x38]
mov edx, 6
call fcn.0040aac0
lea rcx, [rbp + 0x80]
call fcn.004392c0
lea rcx, [rbp + 0xb0]
call fcn.004392c0
lea rcx, [rbp + 0x128]
call fcn.0040f960
lea rcx, [rbp + 0x130]
call fcn.0040f960
lea rcx, [rbp + 0x138]
mov rdx, qword [0x004cee00]
mov r8d, 2
call fcn.0040cdf0
lea rcx, [rbp + 0x158]
call fcn.0040f960
lea rcx, [rbp + 0x160]
call fcn.0040aa80
lea rcx, [rbp + 0x170]
call fcn.0040f960
lea rcx, [rbp + 0x178]
mov rdx, qword [0x004cedb0]
mov r8d, 2
call fcn.0040cdf0
lea rcx, [rbp + 0x188]
call fcn.0040f960
lea rcx, [rbp + 0x190]
call fcn.0040f960
lea rcx, [rbp + 0x198]
mov rdx, qword [0x00402270]
mov r8d, 2
call fcn.0040cdf0
lea rcx, [rbp + 0x1b0]
mov rdx, qword [0x004cee50]
mov r8d, 2
call fcn.0040cdf0
lea rcx, [rbp + 0x1e8]
call fcn.0040f960
mov eax, dword [rbp + 0x1a8]
lea rsp, [rbp + 0x1c0]
pop rsi
pop rdi
pop rbp
ret