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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x858
mov qword [rsp + 0x248], 0xfffffffffffffffe
mov dword [rsp + 0x78], 0
mov rax, qword [rsp + 0x860]
mov dword [rax + 0x20], 0
mov rax, qword [rsp + 0x860]
mov rcx, rax
call fcn.1800736f0
mov rdx, qword [rsp + 0x868]
lea rcx, [rsp + 0xf8]
call fcn.1800730e0
nop
mov byte [rsp + 0x60], 0x3a
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xf8]
call fcn.1800784f0
mov qword [rsp + 0xd0], rax
mov rax, qword [0x180323d38]
cmp qword [rsp + 0xd0], rax
je 0x180161084
lea rcx, [rsp + 0xf8]
call fcn.180073860
mov rcx, qword [rsp + 0xd0]
lea rax, [rax + rcx + 1]
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call fcn.18017e330
mov dword [rsp + 0xa0], eax
mov r9, qword [rsp + 0xd0]
xor r8d, r8d
lea rdx, [rsp + 0x3a0]
lea rcx, [rsp + 0xf8]
call fcn.180073ad0
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
lea rcx, [rsp + 0xf8]
call fcn.180073190
lea rcx, [rsp + 0x3a0]
call fcn.180073360
cmp dword [rsp + 0xa0], 0
je 0x180161084
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x878], eax
mov rax, qword [rsp + 0x860]
movzx eax, byte [rax + 0x6e8]
test eax, eax
jne 0x1801610f7
xor edx, edx
mov rcx, qword [rsp + 0x860]
call fcn.180160230
movzx eax, al
test eax, eax
jne 0x1801610f7
mov rax, qword [rsp + 0x860]
mov dword [rax + 0x20], 0x1f
mov rax, qword [rsp + 0x860]
lea rdx, [0x1803accc8]
mov rcx, rax
call fcn.1800736c0
mov dword [rsp + 0xb4], 0
lea rcx, [rsp + 0xf8]
call fcn.180073360
mov eax, dword [rsp + 0xb4]
jmp 0x180161d80
mov qword [rsp + 0x80], 0
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x260]
call fcn.18017d170
mov dword [rsp + 0x264], 0
mov dword [rsp + 0x268], 1
mov dword [rsp + 0x26c], 6
lea rcx, [rsp + 0xf8]
call fcn.180073860
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x260]
xor edx, edx
mov rcx, rax
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2b0]
test eax, eax
je 0x180161211
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2a8]
mov rcx, qword [rsp + 0x860]
mov dword [rcx + 0x20], eax
lea rcx, [rsp + 0xf8]
call fcn.180073860
mov r9, rax
mov rax, qword [rsp + 0x860]
mov r8d, dword [rax + 0x20]
lea rdx, [0x1803acd80]
lea rcx, [rsp + 0x340]
call fcn.1801e9200
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0x860]
mov rdx, qword [rsp + 0x1e0]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x340]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x1801611e7
mov dword [rsp + 0xbc], 0
lea rcx, [rsp + 0xf8]
call fcn.180073360
mov eax, dword [rsp + 0xbc]
jmp 0x180161d80
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x70], 0xffffffffffffffff
mov qword [rsp + 0xe0], 0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
jmp 0x180161259
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x180161299
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x20], 0
je 0x180161297
mov rax, qword [rsp + 0x88]
cmp dword [rax + 4], 2
jne 0x180161297
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xe0], rax
jmp 0x180161299
jmp 0x180161245
cmp qword [rsp + 0xe0], 0
jne 0x1801612c5
lea rcx, [rsp + 0x2f8]
call fcn.18017ca8c
lea rdx, [0x180396880]
lea rcx, [rsp + 0x2f8]
call fcn.180181900
mov r8d, 0x10
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x208]
call fcn.18017c210
cmp dword [rsp + 0x878], 0
je 0x1801612fa
mov eax, dword [rsp + 0x878]
mov dword [rsp + 0x94], eax
jmp 0x180161305
mov dword [rsp + 0x94], 0x50
movzx ecx, word [rsp + 0x94]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x300]
mov word [rsp + 0x7c], ax
movzx eax, word [rsp + 0x7c]
mov word [rsp + 0x20a], ax
lea rcx, [rsp + 0x1c0]
call fcn.180073040
mov qword [rsp + 0x258], rax
lea rdx, [0x1803a8ec4]
mov rcx, qword [rsp + 0x888]
call fcn.18017d2d0
test eax, eax
jne 0x180161459
mov rcx, qword [rsp + 0x880]
call fcn.180073860
mov qword [rsp + 0x1b8], rax
mov rcx, qword [rsp + 0x860]
add rcx, 0x6a8
call fcn.180073860
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x880]
call fcn.180003ba0
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x860]
add rcx, 0x6c8
call fcn.180073860
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0xf8]
call fcn.180073860
mov rcx, qword [rsp + 0x1b8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x148]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x128]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x870]
mov r8, qword [rsp + 0x888]
lea rdx, [0x1803acd00]
lea rcx, [rsp + 0x3e0]
call fcn.1801e9200
mov qword [rsp + 0x190], rax
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x1c0]
call fcn.180073190
lea rcx, [rsp + 0x3e0]
call fcn.180073360
jmp 0x1801615e7
mov rcx, qword [rsp + 0x880]
call fcn.1800738f0
movzx eax, al
test eax, eax
je 0x180161481
lea rax, [0x1803a568a]
mov qword [rsp + 0x118], rax
jmp 0x180161508
mov edx, 0x3f
mov rcx, qword [rsp + 0x870]
call fcn.18017cda8
test rax, rax
je 0x18016149f
mov byte [rsp + 0x51], 0x26
jmp 0x1801614a4
mov byte [rsp + 0x51], 0x3f
mov rcx, qword [rsp + 0x880]
call fcn.180073860
movsx ecx, byte [rsp + 0x51]
mov r9, rax
mov r8d, ecx
lea rdx, [0x1803acde0]
lea rcx, [rsp + 0x400]
call fcn.1801e9200
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x1b0], rax
mov eax, dword [rsp + 0x78]
or eax, 1
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x1b0]
call fcn.180073860
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x860]
add rax, 0x6a8
mov rcx, rax
call fcn.180073860
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x860]
add rcx, 0x6c8
call fcn.180073860
mov qword [rsp + 0x1a0], rax
lea rcx, [rsp + 0xf8]
call fcn.180073860
mov rcx, qword [rsp + 0x170]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x1a0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x870]
mov r8, qword [rsp + 0x888]
lea rdx, [0x1803acda8]
lea rcx, [rsp + 0x380]
call fcn.1801e9200
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x1c0]
call fcn.180073190
lea rcx, [rsp + 0x380]
call fcn.180073360
nop
mov eax, dword [rsp + 0x78]
and eax, 1
test eax, eax
je 0x1801615e7
and dword [rsp + 0x78], 0xfffffffe
lea rcx, [rsp + 0x400]
call fcn.180073360
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2c0]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jae 0x180161643
lea rcx, [rsp + 0x2e0]
call fcn.18017ca8c
lea rdx, [0x180396880]
lea rcx, [rsp + 0x2e0]
call fcn.180181900
mov rax, qword [rsp + 0x860]
cmp dword [rax + 0x6a0], 0xffffffff
je 0x18016168d
mov dword [rsp + 0xc4], 0xc8
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xc4]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2f8]
mov r8d, 0x10
lea rdx, [rsp + 0x208]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2c8]
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 0
jge 0x1801616e0
lea rcx, [rsp + 0x310]
call fcn.18017ca8c
lea rdx, [0x180396880]
lea rcx, [rsp + 0x310]
call fcn.180181900
lea rcx, [rsp + 0x1c0]
call fcn.180003ba0
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x1c0]
call fcn.180073860
xor r9d, r9d
mov rcx, qword [rsp + 0x130]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2d0]
mov dword [rsp + 0xa4], eax
lea rcx, [rsp + 0x1c0]
call fcn.180003ba0
cmp dword [rsp + 0xa4], eax
je 0x180161764
lea rcx, [rsp + 0x328]
call fcn.18017ca8c
lea rdx, [0x180396880]
lea rcx, [rsp + 0x328]
call fcn.180181900
cmp qword [rsp + 0x890], 0
je 0x180161cbb
lea rcx, [rsp + 0x218]
call fcn.180073040
mov qword [rsp + 0x240], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0xb0], eax
xor eax, eax
cmp eax, 1
je 0x180161983
mov rax, qword [rsp + 0x860]
cmp dword [rax + 0x6a0], 0xffffffff
je 0x1801618dc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x860]
cmp dword [rcx + 0x6a0], eax
ja 0x1801617d7
jmp 0x180161983
mov dword [rsp + 0x120], 0
mov rax, qword [rsp + 0x860]
mov eax, dword [rax + 0x6a0]
imul eax, eax, 0x3e8
mov dword [rsp + 0x124], eax
mov dword [rsp + 0x440], 0
mov dword [rsp + 0x68], 0
jmp 0x18016181c
mov eax, dword [rsp + 0x68]
inc eax
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x440]
cmp dword [rsp + 0x68], eax
jae 0x180161840
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
cmp qword [rsp + rax*8 + 0x448], rcx
jne 0x18016183e
jmp 0x180161840
jmp 0x180161812
mov eax, dword [rsp + 0x440]
cmp dword [rsp + 0x68], eax
jne 0x180161878
cmp dword [rsp + 0x440], 0x40
jae 0x180161878
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + rax*8 + 0x448], rcx
mov eax, dword [rsp + 0x440]
inc eax
mov dword [rsp + 0x440], eax
xor eax, eax
test eax, eax
jne 0x180161808
lea rax, [rsp + 0x120]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x440]
xor ecx, ecx
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2e0]
mov dword [rsp + 0xd8], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jne 0x1801618cd
jmp 0x180161795
cmp dword [rsp + 0x98], 0
jge 0x1801618dc
jmp 0x180161983
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rsp + 0x650]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2d8]
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0
jle 0x18016197c
movsxd rax, dword [rsp + 0x90]
mov r8, rax
lea rdx, [rsp + 0x650]
lea rcx, [rsp + 0x3c0]
call fcn.180073080
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x168], rax
mov rdx, qword [rsp + 0x168]
lea rcx, [rsp + 0x218]
call fcn.180073480
nop
lea rcx, [rsp + 0x3c0]
call fcn.180073360
jmp 0x18016197e
jmp 0x180161983
jmp 0x180161795
xor eax, eax
test eax, eax
jne 0x180161983
lea rcx, [rsp + 0x1e8]
call fcn.180073040
mov qword [rsp + 0x238], rax
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x1e8]
mov r8, qword [rsp + 0x890]
lea rdx, [rsp + 0x218]
mov rcx, qword [rsp + 0x860]
call fcn.180160a20
mov dword [rsp + 0xec], eax
mov eax, dword [rsp + 0xec]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0x12d
je 0x1801619f2
cmp dword [rsp + 0x54], 0x12e
jne 0x180161c73
lea rcx, [rsp + 0x1e8]
call fcn.1800738f0
movzx eax, al
test eax, eax
jne 0x180161c50
cmp dword [rsp + 0x898], 2
jge 0x180161bfa
lea rcx, [rsp + 0x290]
call fcn.18007b600
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x1e8]
call fcn.180073860
xor r8d, r8d
lea rdx, [rsp + 0x290]
mov rcx, rax
call fcn.1801e7900
mov byte [rsp + 0x58], al
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x180161b8f
cmp qword [rsp + 0x70], 0
jb 0x180161a79
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2f0]
cmp qword [rsp + 0x80], 0
je 0x180161a9a
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2b8]
xor eax, eax
test eax, eax
jne 0x180161a9a
mov eax, dword [rsp + 0x898]
inc eax
mov dword [rsp + 0xc0], eax
lea rcx, [rsp + 0x2b0]
call fcn.180073860
mov qword [rsp + 0x178], rax
lea rcx, [rsp + 0x290]
call fcn.180073860
mov ecx, dword [rsp + 0xc0]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x890]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x888]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x880]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x178]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x860]
call fcn.180160f50
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0xc8], eax
lea rcx, [rsp + 0x290]
call fcn.1800984e0
nop
lea rcx, [rsp + 0x1e8]
call fcn.180073360
nop
lea rcx, [rsp + 0x218]
call fcn.180073360
nop
lea rcx, [rsp + 0x1c0]
call fcn.180073360
nop
lea rcx, [rsp + 0xf8]
call fcn.180073360
mov eax, dword [rsp + 0xc8]
jmp 0x180161d80
lea rcx, [rsp + 0x1e8]
call fcn.180073860
mov r9, rax
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1803ace18]
lea rcx, [rsp + 0x420]
call fcn.1801e9200
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x860]
mov rdx, qword [rsp + 0x188]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x420]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x180161be5
lea rcx, [rsp + 0x290]
call fcn.1800984e0
jmp 0x180161c4e
mov r9d, dword [rsp + 0x898]
mov r8d, dword [rsp + 0x54]
lea rdx, [0x1803acde8]
lea rcx, [rsp + 0x360]
call fcn.1801e9200
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x860]
mov rdx, qword [rsp + 0x198]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x360]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x180161c48
jmp 0x180161c71
mov eax, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x860]
mov r8d, eax
lea rdx, [0x1803ace40]
call fcn.180077df0
xor eax, eax
test eax, eax
jne 0x180161c6b
jmp 0x180161c9e
cmp dword [rsp + 0x54], 0
je 0x180161c87
mov dword [rsp + 0x9c], 1
jmp 0x180161c92
mov dword [rsp + 0x9c], 0
movzx eax, byte [rsp + 0x9c]
mov byte [rsp + 0x50], al
lea rcx, [rsp + 0x1e8]
call fcn.180073360
nop
lea rcx, [rsp + 0x218]
call fcn.180073360
jmp 0x180161cce
xor eax, eax
test eax, eax
jne 0x180161cbb
mov dword [rsp + 0x54], 0xc8
mov byte [rsp + 0x50], 1
lea rcx, [rsp + 0x1c0]
call fcn.180073360
nop
jmp 0x180161cde
cmp qword [rsp + 0x70], 0
jb 0x180161cf9
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2f0]
cmp qword [rsp + 0x80], 0
je 0x180161d1a
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x860]
call qword [rax + 0x2b8]
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x180161d44
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0xa8], eax
lea rcx, [rsp + 0xf8]
call fcn.180073360
mov eax, dword [rsp + 0xa8]
jmp 0x180161d80
mov rax, qword [rsp + 0x860]
cmp dword [rax + 0x20], 0
jne 0x180161d61
mov rax, qword [rsp + 0x860]
mov dword [rax + 0x20], 0x1f
mov dword [rsp + 0xac], 0
lea rcx, [rsp + 0xf8]
call fcn.180073360
mov eax, dword [rsp + 0xac]
add rsp, 0x858
ret