Function at 0x1800215b0
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r13
sub rsp, 0x60
mov rax, qword [0x180035c60]
and qword [r11 - 0x38], 0
mov rdi, rdx
mov rsi, rcx
lea r13, [0x180000000]
mov rbx, 0xffffffff80000001
lea rdx, [rax + r13 + 0x3920a]
lea r8, [r11 - 0x28]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x18002184b
mov r8, qword [0x180035f40]
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18001df64
test eax, eax
je 0x1800217d9
test rdi, rdi
jne 0x1800217ca
mov rdx, qword [0x180035bf0]
lea r8, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1800217c3
mov r8, qword [0x180035f40]
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.18001df64
test eax, eax
je 0x180021769
mov ebx, dword [rsi + 0x40]
mov rcx, qword [rsi + 0x38]
lea edx, [rbx + 0x104]
call fcn.18002b3b0
mov rdi, rax
test rax, rax
je 0x180021762
mov eax, 0x5c
lea rbp, [rdi + rbx*2 + 2]
mov word [rdi + rbx*2], ax
mov rdx, qword [0x180035f48]
mov rcx, rbp
call qword [sym.imp.kERNEL32.dll_lstrcpyW]
mov rdx, qword [0x180035c60]
mov rcx, rdi
lea rdx, [rdx + r13 + 0x3ae68]
call qword [sym.imp.kERNEL32.dll_lstrcatW]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180021741
mov rdx, qword [0x180035f48]
mov rcx, rbp
call qword [sym.imp.kERNEL32.dll_lstrcpyW]
mov rax, qword [0x180035c60]
mov rcx, rdi
lea rdx, [rax + r13 + 0x3ae78]
call qword [sym.imp.kERNEL32.dll_lstrcatW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800217b6
mov rax, qword [0x180035c60]
mov rcx, rdi
lea rdx, [rax + r13 + 0x3a64d]
call fcn.1800258f8
jmp 0x18002174b
xor edx, edx
mov rcx, rdi
call fcn.18002b3b0
mov rbx, rax
test rax, rax
je 0x1800217b6
mov edx, 1
mov rcx, rax
call fcn.18000df20
jmp 0x1800217b6
mov rbx, qword [rsp + 0x40]
jmp 0x1800217b6
mov rax, qword [0x180035f48]
mov rbx, qword [rsp + 0x40]
mov r9, qword [0x180035f50]
mov r8, qword [0x180035f40]
lea rdx, [rsp + 0x98]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.180024694
test eax, eax
jne 0x1800217b6
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800217e9
mov rbx, qword [rsp + 0x40]
jmp 0x18002183c
xor edx, edx
mov rcx, rdi
call fcn.18002b3b0
mov rbx, rax
jmp 0x1800217e9
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call fcn.18000eebc
mov rdi, rax
test rdi, rdi
je 0x18002183c
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.kERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x180021826
call qword [sym.imp.kERNEL32.dll_GetLastError]
jmp 0x18002182a
mov qword [rsi + 0x28], rax
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret