Function at 0x18004e610
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 [0x1804cd010]
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 0x18004e820
cmp qword [rcx + 0x48], 0
je 0x18004e820
cmp qword [rcx + 0x58], 0
je 0x18004e820
cmp qword [rdx + 0x10], 0
jne 0x18004e849
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x18004e68b
call fcn.180028b50
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x18004e69d
mov rax, qword [rcx]
call qword [rax + 0x38]
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x18004e6ba
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004e6ba
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 0x18004e763
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, [0x1803c0558]
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 0x18004e752
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e74d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e74d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x11], r14
mov qword [rbp - 9], 7
mov word [rbp - 0x21], r14w
test rbx, rbx
je 0x18004e77b
mov rcx, qword [rbx]
test rcx, rcx
je 0x18004e776
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 0x18004e793
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.1801fd570
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 0x18004e80f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e80a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e80a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
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.180388400
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 [0x1804df80c]
test al, 1
jne 0x18004e868
or eax, 1
mov dword [0x1804df80c], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804df810], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [0x1804df810]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804df810], 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.180158db0
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.180158db0
mov r13, qword [rbp - 0x61]
mov rax, qword [rbp - 0x51]
cmp qword [rbp - 0x31], rax
je 0x18004e8f7
xor r12b, r12b
jmp 0x18004e91b
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.180154bd0
movzx r12d, al
xor r12b, 1
mov rdx, qword [rsi + 0x68]
mov ebx, 1
test rdx, rdx
je 0x18004e99c
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 0x18004e98b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004e986
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004e986
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
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 0x18004e9b9
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004e9b9
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 0x18004e9ff
test rdi, rdi
je 0x18004e9f8
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004e9f3
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], r14
xor bl, bl
jmp 0x18004ee1b
test r12b, r12b
je 0x18004ea21
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 0x18004ea34
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 0x18004ea55
mov rax, qword [rax]
mov rcx, rbx
call qword [rax]
nop
test rbx, rbx
je 0x18004ea62
cmp qword [rsi + 0x70], rbx
je 0x18004eaad
jmp 0x18004ea92
mov rdx, r15
mov rcx, rsi
call fcn.180050280
mov r15, rax
test rax, rax
je 0x18004ea84
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 0x18004eaad
test rbx, rbx
je 0x18004ea9e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x18004eaa9
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 0x18004eac7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
test rdi, rdi
je 0x18004eadf
mov rcx, qword [rdi]
test rcx, rcx
je 0x18004eada
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 0x18004eb25
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + pe_nt_image_headers64]
cmp eax, 3
je 0x18004eb25
xor bl, bl
jmp 0x18004eb27
mov bl, 1
mov edi, dword [rbp - 0x79]
cmp edi, 0xc6
ja 0x18004ebfb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804de060], 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 0x18004eb67
mov edx, 0x40a
jmp 0x18004ebcf
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x18004eb98
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 0x18004ebca
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 [0x1804df610]
jmp 0x18004ed14
test bl, bl
je 0x18004ec52
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804de060], 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 0x18004ecfa
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 0x18004ec77
mov ecx, 0x42004
bt ecx, eax
jb 0x18004ecc4
cmp edi, 0x116
ja 0x18004ecc4
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x18004ecb0
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 [0x1804df610]
jmp 0x18004ecfa
cmp eax, 0x22
jne 0x18004ecfa
mov rcx, qword [rsi + 0x70]
mov rax, qword [rcx]
mov edx, 2
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
jne 0x18004ecfa
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 [0x1804df610], 5
jne 0x18004ed56
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0xf8]
mov dword [0x1804df610], r14d
test r12b, r12b
je 0x18004ee19
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 0x18004ed8b
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x18004ed99
call fcn.180028b50
mov rcx, qword [rsi + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x160]
test al, al
jne 0x18004ee03
mov rcx, qword [rsi + 0x68]
test rcx, rcx
jne 0x18004edfa
mov ecx, 0x48
call fcn.180388424
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.180028850
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x18004ee19
mov rax, qword [rcx]
lea rdx, [rbp - 0x41]
call qword [rax + 0x40]
mov bl, 1
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x18004ee5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ee59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004ee59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r14w
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x18004eeb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004eead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004eead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], 7
mov word [rbp - 1], r14w
mov rax, qword [rbp - 0x49]
cmp rax, 8
jb 0x18004ef05
lea rdx, [rax*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x18004eefd
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004eefd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.180388460
mov qword [rbp - 0x51], r14
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r14w
movzx eax, bl
jmp 0x18004e822