Function at 0x140034cd0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rax, qword [0x1401f5028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp byte [rcx + 0x6c], 0
je 0x1400350c8
mov qword [rsp + 0x68], rdx
mov r8, qword [rcx + 0x38]
mov r15, qword [rcx + 0x30]
mov rax, r8
sub rax, r15
mov rsi, rax
sar rsi, 2
movabs rbx, 0xf0f0f0f0f0f0f0f1
imul rsi, rbx
mov rbp, qword [rcx]
mov rdi, qword [rcx + 8]
sub rdi, rbp
mov r12, rdi
sar r12, 2
mov rdx, qword [rcx + 0x20]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rcx
mov r14, qword [rcx + 0x18]
test rax, rax
jne 0x140034d5c
mov r15, rsi
xor r13d, r13d
mov r8, qword [rsp + 0x50]
jmp 0x140034dd2
mov qword [rsp + 0x58], rdi
mov ecx, 0x10
mov rax, rsi
mul rcx
mov rcx, 0xffffffffffffffff
cmovno rcx, rax
mov rdi, r8
call fcn.1400f04c8
mov r13, rax
cmp rdi, r15
je 0x14003508e
mov eax, 1
xor ecx, ecx
mov r8, qword [rsp + 0x50]
mov rdx, rcx
shl rdx, 6
lea rdx, [rdx + rcx*4]
shl rcx, 4
mov dword [r13 + rcx + 8], 0x10
add rdx, r15
mov qword [r13 + rcx], rdx
mov ecx, eax
inc eax
cmp rsi, rcx
ja 0x140034d97
mov r15, rsi
movabs rbx, 0xf0f0f0f0f0f0f0f1
mov rdi, qword [rsp + 0x58]
sub r8, r14
mov qword [rsp + 0x50], r8
imul r12, rbx
test rdi, rdi
mov rbx, qword [rsp + 0x60]
je 0x1400350d2
mov ecx, 0x10
mov rax, r12
mul rcx
mov rcx, 0xffffffffffffffff
cmovno rcx, rax
call fcn.1400f04c8
mov rsi, rax
mov eax, 1
xor ecx, ecx
mov rdi, r15
mov rdx, rcx
shl rdx, 6
lea rdx, [rdx + rcx*4]
shl rcx, 4
mov dword [rsi + rcx + 8], 0
add rdx, rbp
mov qword [rsi + rcx], rdx
mov ecx, eax
inc eax
cmp r12, rcx
ja 0x140034e14
mov rax, qword [rsp + 0x50]
mov rbp, rax
sar rbp, 3
test rax, rax
mov r15, rbx
jne 0x140034e53
xor ebx, ebx
jmp 0x140034e95
mov ecx, 0xc
mov rax, rbp
mul rcx
mov rcx, 0xffffffffffffffff
cmovno rcx, rax
call fcn.1400f04c8
mov rbx, rax
mov eax, 1
xor ecx, ecx
lea rdx, [rcx + rcx*2]
mov dword [rbx + rdx*4 + 8], 0
mov rcx, qword [r14 + rcx*8]
mov qword [rbx + rdx*4], rcx
mov ecx, eax
inc eax
cmp rbp, rcx
ja 0x140034e78
mov qword [rsp + 0x70], 0
mov rax, r12
or rax, rdi
or rax, rbp
je 0x1400350e1
mov rcx, qword [r15 + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
xor edx, edx
mov r8d, edi
mov r9, r13
call qword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test r13, r13
je 0x140034ef3
mov rcx, r13
call fcn.1400f04a0
test rsi, rsi
je 0x140034f00
mov rcx, rsi
call fcn.1400f04a0
test rbx, rbx
mov r14, qword [rsp + 0x68]
je 0x140034f12
mov rcx, rbx
call fcn.1400f04a0
test ebp, ebp
je 0x14003503b
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140035087
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400350b4
call fcn.1400c18d0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [r15 + 0x6d], 0
je 0x140035110
mov rcx, rbx
call fcn.1400352d0
test al, al
je 0x1400350bb
mov rsi, qword [r15 + 0x48]
mov rdi, qword [r15 + 0x50]
cmp rsi, rdi
jne 0x140035061
mov rcx, rbx
mov edx, 0x10000000
call fcn.140035200
test al, al
je 0x1400350bb
mov edx, dword [r15 + 0x68]
mov rcx, rbx
call fcn.140035140
test eax, eax
jne 0x1400350c1
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x78]
mov qword [rsi], rax
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rdi
mov rbp, rax
call rdi
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0xf01ff
mov rcx, rax
mov rdx, rbx
mov r8, rbp
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400350bb
mov rbp, qword [rsp + 0x78]
cmp qword [r14], rbp
je 0x140035024
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x14003509b
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14003501c
mov qword [r14], rbp
call fcn.1400c18d0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003503b
call fcn.1400c18d0
mov rcx, rbx
call fcn.1400def50
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400f32c0
mov eax, edi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8d, dword [rsi + 0x44]
mov r9d, dword [rsi + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400353c0
test al, al
je 0x1400350bb
add rsi, 0x4c
cmp rdi, rsi
je 0x140034f73
jmp 0x140035061
xor ebx, ebx
jmp 0x140034f47
mov r15, rsi
mov r8, qword [rsp + 0x50]
jmp 0x140034dc3
call fcn.1400c18d0
mov rcx, qword [r14]
call fcn.1400def50
mov qword [r14], 0
jmp 0x14003500a
xor ebx, ebx
jmp 0x140034f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140035024
mov edi, 0x3f0
jmp 0x14003503b
xor esi, esi
mov rax, qword [rsp + 0x50]
mov rdi, r15
jmp 0x140034e40
mov rcx, qword [r15 + 0x60]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, 0xf01ff
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x140034edc
lea rsi, [rsp + 0x78]
mov rcx, rsi
mov edx, 0x12
call fcn.14005ac00
mov rcx, rbx
mov rdx, rsi
mov r8d, 1
mov r9d, 0x10000000
call fcn.1400353c0
jmp 0x140034f5a