Function at 0x18004e580
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 [0x1804ca010]
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 0x18004e790
cmp qword [rcx + 0x48], 0
je 0x18004e790
cmp qword [rcx + 0x58], 0
je 0x18004e790
cmp qword [rdx + 0x10], 0
jne 0x18004e7b9
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x18004e5fb
call fcn.180028ac0
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x18004e60d
mov rax, qword [rcx]
call qword [rax + 0x38]
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x18004e62a
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004e62a
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 0x18004e6d3
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, [0x1803be558]
lea rcx, [rbp - 0x21]
call fcn.180004e70
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 0x18004e6c2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e6bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e6bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r14w
test rbx, rbx
je 0x18004e6eb
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004e6e6
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 0x18004e703
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.1801fcfb0
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 0x18004e77f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e77a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e77a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
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.180385c10
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 [0x1804dc7ac]
test al, 1
jne 0x18004e7d8
or eax, 1
mov dword [0x1804dc7ac], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804dc7b0], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [0x1804dc7b0]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804dc7b0], 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.1801587f0
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.1801587f0
mov r13, qword [rbp - 0x61]
mov rax, qword [rbp - 0x51]
cmp qword [rbp - 0x31], rax
je 0x18004e867
xor r12b, r12b
jmp 0x18004e88b
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.180154610
movzx r12d, al
xor r12b, 1
mov rdx, qword [rsi + 0x68]
mov ebx, 1
test rdx, rdx
je 0x18004e90c
add rdx, 0x18
lea rcx, [rbp - 0x21]
call fcn.180004aa0
nop
movzx r12d, r12b
cmp qword [rbp - 0x11], 0
cmove r12d, ebx
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x18004e8fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e8f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e8f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
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 0x18004e929
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004e929
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 0x18004e96f
test rdi, rdi
je 0x18004e968
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004e963
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r14
xor bl, bl
jmp 0x18004ed8b
test r12b, r12b
je 0x18004e991
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 0x18004e9a4
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 0x18004e9c5
mov rax, qword [rax]
mov rcx, rbx
call qword [rax]
nop
test rbx, rbx
je 0x18004e9d2
cmp qword [rsi + 0x70], rbx
je 0x18004ea1d
jmp 0x18004ea02
mov rdx, r15
mov rcx, rsi
call fcn.1800501f0
mov r15, rax
test rax, rax
je 0x18004e9f4
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 0x18004ea1d
test rbx, rbx
je 0x18004ea0e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x18004ea19
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 0x18004ea37
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
test rdi, rdi
je 0x18004ea4f
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004ea4a
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 + 0x138]
cmp eax, 2
je 0x18004ea95
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x138]
cmp eax, 3
je 0x18004ea95
xor bl, bl
jmp 0x18004ea97
mov bl, 1
mov edi, dword [rbp - 0x79]
cmp edi, 0xc6
ja 0x18004eb6b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804db030], 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 0x18004ead7
mov edx, 0x40a
jmp 0x18004eb3f
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + 0x138]
cmp eax, 2
jne 0x18004eb08
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 + 0x138]
cmp eax, 2
jne 0x18004eb3a
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 [0x1804dc5b0]
jmp 0x18004ec84
test bl, bl
je 0x18004ebc2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804db030], 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 + 0x138]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xd8]
jmp 0x18004ec6a
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 0x18004ebe7
mov ecx, 0x42004
bt ecx, eax
jb 0x18004ec34
cmp edi, 0x116
ja 0x18004ec34
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + 0x138]
cmp eax, 2
jne 0x18004ec20
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 [0x1804dc5b0]
jmp 0x18004ec6a
cmp eax, 0x22
jne 0x18004ec6a
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + 0x138]
cmp eax, 2
jne 0x18004ec6a
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 [0x1804dc5b0], 5
jne 0x18004ecc6
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xf8]
mov dword [0x1804dc5b0], r14d
test r12b, r12b
je 0x18004ed89
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 0x18004ecfb
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x18004ed09
call fcn.180028ac0
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x160]
test al, al
jne 0x18004ed73
mov rcx, qword [rsi + 0x68]
test rcx, rcx
jne 0x18004ed6a
mov ecx, 0x48
call fcn.180385c34
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.1800287c0
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x18004ed89
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
call qword [rax + 0x40]
mov bl, 1
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x18004edce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004edc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004edc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r14w
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x18004ee22
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ee1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004ee1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r14w
mov rax, qword [rbp - 0x49]
cmp rax, 8
jb 0x18004ee75
lea rdx, [rax*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x18004ee6d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004ee6d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180385c70
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r14w
movzx eax, bl
jmp 0x18004e792