Function at 0x18004def0
Capabilities:
Check for time delay via gettickcount
Set current directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov byte [rsp + 0x30], r8b
mov r15, rdx
mov rsi, rcx
cmp qword [rcx + 0x50], 0
je 0x18004e100
cmp qword [rcx + 0x48], 0
je 0x18004e100
cmp qword [rcx + 0x58], 0
je 0x18004e100
cmp qword [rdx + 0x10], 0
jne 0x18004e129
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x18004df6b
call fcn.180028430
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x18004df7d
mov rax, qword [rcx]
call qword [rax + 0x38]
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x18004df9a
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004df9a
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
xor r14d, r14d
cmp qword [rsi + 0x50], r14
je 0x18004e043
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], r14
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r14w
xor r8d, r8d
lea rdx, [0x1803bf568]
lea rcx, [rbp - 0x21]
call fcn.180004ea0
nop
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rbp - 0x21]
call qword [rax + 0x30]
nop
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x18004e032
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e02d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e02d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r14w
test rbx, rbx
je 0x18004e05b
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004e056
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r14
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x18004e073
mov rax, qword [rcx]
call qword [rax + 0x38]
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r14w
lea rdx, [rbp - 0x61]
xor ecx, ecx
call fcn.1801fce90
lea rcx, [rbp - 0x61]
cmp qword [rbp - 0x49], 8
cmovae rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x18004e0ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e0ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e0ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r14w
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [0x1804de81c]
test al, 1
jne 0x18004e148
or eax, 1
mov dword [0x1804de81c], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804de820], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [0x1804de820]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804de820], eax
lea eax, [rbx - 1]
mov dword [rbp - 0x79], eax
xor r14d, r14d
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r14w
mov rax, qword [rsi]
lea rdx, [rbp - 1]
mov rcx, rsi
call qword [rax + 0x60]
nop
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 1]
call fcn.180158700
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], r14
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r14w
lea rdx, [rbp - 0x41]
mov rcx, r15
call fcn.180158700
mov r13, qword [rbp - 0x61]
mov rax, qword [rbp - 0x51]
cmp qword [rbp - 0x31], rax
je 0x18004e1d7
xor r12b, r12b
jmp 0x18004e1fb
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 8
cmovae rdx, r13
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
call fcn.180154520
movzx r12d, al
xor r12b, 1
mov rdx, qword [rsi + 0x68]
mov ebx, 1
test rdx, rdx
je 0x18004e27c
add rdx, 0x18
lea rcx, [rbp - 0x21]
call fcn.180004ad0
nop
movzx r12d, r12b
cmp qword [rbp - 0x11], 0
cmove r12d, ebx
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x18004e26b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e266
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e266
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r14w
lea rdi, [rsi + 0x60]
mov qword [rsp + 0x38], rdi
test rdi, rdi
je 0x18004e299
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004e299
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x160]
mov r8d, r14d
test al, al
setne r8b
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + 0x30]
test al, al
jne 0x18004e2df
test rdi, rdi
je 0x18004e2d8
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004e2d3
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r14
xor bl, bl
jmp 0x18004e6fb
test r12b, r12b
je 0x18004e301
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x18004e314
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsi + 0x70], r14
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
call qword [rax + 0x70]
mov rbx, rax
mov qword [rbp - 0x71], rax
test rax, rax
je 0x18004e335
mov rax, qword [rax]
mov rcx, rbx
call qword [rax]
nop
test rbx, rbx
je 0x18004e342
cmp qword [rsi + 0x70], rbx
je 0x18004e38d
jmp 0x18004e372
mov rdx, r15
mov rcx, rsi
call fcn.18004fb60
mov r15, rax
test rax, rax
je 0x18004e364
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
mov rbx, r15
mov qword [rbp - 0x71], rbx
mov rcx, qword [rsi + 0x70]
cmp rcx, rbx
je 0x18004e38d
test rbx, rbx
je 0x18004e37e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x18004e389
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [rsi + 0x70], rbx
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x38]
nop
test rbx, rbx
je 0x18004e3a7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
test rdi, rdi
je 0x18004e3bf
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004e3ba
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r14
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x681
call qword [rax + 0x40]
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
je 0x18004e405
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + pe_nt_image_headers64]
cmp eax, 3
je 0x18004e405
xor bl, bl
jmp 0x18004e407
mov bl, 1
mov edi, dword [rbp - 0x79]
cmp edi, 0xc6
ja 0x18004e4db
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804dd070], eax
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x411
call qword [rax + 0x40]
test bl, bl
je 0x18004e447
mov edx, 0x40a
jmp 0x18004e4af
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x18004e478
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x434
call qword [rax + 0x40]
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x18004e4aa
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x41f
lea r8d, [r9 + 1]
call qword [rax + 0x40]
mov edx, 0x436
mov rcx, qword [rsi + 0x58]
mov byte [rsp + 0x20], 0
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
call qword [rax + 0x40]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd8]
inc dword [0x1804de620]
jmp 0x18004e5f4
test bl, bl
je 0x18004e532
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804dd070], eax
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40a
call qword [rax + 0x40]
lea rcx, [rsi + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + pe_nt_image_headers64]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd8]
jmp 0x18004e5da
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xe8]
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x38]
cmp eax, 0x12
ja 0x18004e557
mov ecx, 0x42004
bt ecx, eax
jb 0x18004e5a4
cmp edi, 0x116
ja 0x18004e5a4
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x18004e590
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x434
call qword [rax + 0x40]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd8]
inc dword [0x1804de620]
jmp 0x18004e5da
cmp eax, 0x22
jne 0x18004e5da
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x18004e5da
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x434
call qword [rax + 0x40]
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x450
call qword [rax + 0x40]
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x440
call qword [rax + 0x40]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x188]
cmp dword [0x1804de620], 5
jne 0x18004e636
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xf8]
mov dword [0x1804de620], r14d
test r12b, r12b
je 0x18004e6f9
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x41f
lea r8d, [r9 + 1]
call qword [rax + 0x40]
cmp byte [rsp + 0x30], 0
jne 0x18004e66b
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x18004e679
call fcn.180028430
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x160]
test al, al
jne 0x18004e6e3
mov rcx, qword [rsi + 0x68]
test rcx, rcx
jne 0x18004e6da
mov ecx, 0x48
call fcn.180386914
mov rcx, rax
mov qword [rbp - 0x71], rax
mov qword [rax], r14
mov qword [rax + 8], r14
mov dword [rax + 0x10], 0x3e8
mov qword [rax + 0x28], r14
mov qword [rax + 0x30], 7
mov word [rax + 0x18], r14w
mov qword [rax + 0x38], r14
mov qword [rax + 0x40], r14
mov qword [rsi + 0x68], rax
lea rax, [rsi + 0x28]
mov qword [rcx], rax
mov rcx, qword [rsi + 0x68]
lea rdx, [rbp - 0x41]
call fcn.180028130
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x18004e6f9
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
call qword [rax + 0x40]
mov bl, 1
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x18004e73e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e739
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e739
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r14w
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x18004e792
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e78d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e78d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r14w
mov rax, qword [rbp - 0x49]
cmp rax, 8
jb 0x18004e7e5
lea rdx, [rax*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x18004e7dd
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e7dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180386950
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r14w
movzx eax, bl
jmp 0x18004e102