Function at 0x1800068c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov r12d, r8d
mov dword [rsp + 0x28], r8d
mov r14, rdx
mov rbx, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov r15d, r13d
mov qword [rsp + 0x30], r13
test rcx, rcx
je 0x18002cf88
mov ecx, 0x8001
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
nop dword [rax + rax]
mov esi, eax
mov dword [rsp + 0x24], eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x180006cf6
mov rcx, rbx
call fcn.180006ef0
test rax, rax
je 0x180006c4b
cmp word [rax], r13w
je 0x180006c4b
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.180006d88
test eax, eax
je 0x180006c4b
or rsi, 0xffffffffffffffff
mov rdi, rsi
inc rdi
cmp word [rbx + rdi*2], r13w
jne 0x18000698c
inc edi
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov edx, dword [rax]
add rdi, rdi
add edx, 0x200000
mov rcx, qword gs:[0x60]
mov r8, rdi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180006c97
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sym.KERNEL32.dll_RtlMoveMemory
mov rax, qword [rsp + 0x38]
sub rax, rbx
sar rax, 1
lea rcx, [r15 + rax*2]
mov qword [rsp + 0x38], rcx
mov rax, qword [rsp + 0x48]
sub rax, rbx
sar rax, 1
lea r12, [r15 + rax*2]
mov qword [rsp + 0x48], r12
mov r13, r14
mov qword [rsp + 0x50], r14
mov edx, dword [rsp + 0x28]
xor r8d, r8d
test edx, edx
je 0x180006a43
test r14, r14
je 0x180006a43
cmp r14, rbx
jae 0x180006baa
mov rdi, rdx
lea rax, [r14 + rdx*2]
cmp rax, rbx
jae 0x180006bd0
mov qword [rsp + 0x58], r15
mov edi, dword [rsp + 0x20]
mov rax, rcx
sub rax, r15
sar rax, 1
add edi, eax
mov dword [rsp + 0x20], edi
test eax, eax
je 0x180006a81
cmp edx, edi
jbe 0x180006a81
mov ebx, eax
add rbx, rbx
mov r8, rbx
mov rdx, r15
mov rcx, r13
call sym.KERNEL32.dll_RtlMoveMemory
add r13, rbx
mov qword [rsp + 0x50], r13
xor r8d, r8d
movzx ebx, word [r12]
mov word [r12], r8w
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov word [r12], bx
cmp rax, rsi
je 0x180006ce6
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
lea rcx, [rsp + 0x8c]
mov rax, rsi
xor r8d, r8d
inc rax
cmp word [rcx + rax*2], r8w
jne 0x180006acc
test eax, eax
je 0x180006cd3
lea rcx, [rsp + 0x8c]
mov qword [rsp + 0x38], rcx
add edi, eax
mov dword [rsp + 0x20], edi
cmp dword [rsp + 0x28], edi
jbe 0x180006b1a
test r14, r14
je 0x180006b1a
mov ebx, eax
add rbx, rbx
mov r8, rbx
mov rdx, rcx
mov rcx, r13
call sym.KERNEL32.dll_RtlMoveMemory
add r13, rbx
mov qword [rsp + 0x50], r13
xor r8d, r8d
mov r15, r12
mov qword [rsp + 0x58], r12
cmp word [r12], r8w
je 0x180006b58
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.180006d88
xor r8d, r8d
test eax, eax
je 0x180006b58
mov r12, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x28]
jmp 0x180006a4c
test edi, edi
je 0x180006bcb
inc rsi
cmp word [r15 + rsi*2], r8w
jne 0x180006b5c
add edi, esi
mov dword [rsp + 0x20], edi
cmp dword [rsp + 0x28], edi
jbe 0x180006bc5
test r14, r14
je 0x180006bc5
lea eax, [rsi + 1]
mov r8d, eax
add r8, r8
mov rdx, r15
mov rcx, r13
call sym.KERNEL32.dll_RtlMoveMemory
mov rdx, qword [rsp + 0x40]
xor r13d, r13d
test rdx, rdx
jne 0x180006c35
mov r15, qword [rsp + 0x30]
mov esi, dword [rsp + 0x24]
jmp 0x180006cf6
lea rax, [rdi + rbx]
cmp r14, rax
jb 0x180006cb1
cmp r14, rbx
jae 0x180006a43
jmp 0x180006a33
inc edi
mov dword [rsp + 0x20], edi
xor r13d, r13d
jmp 0x180006b9c
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov edx, dword [rax]
lea r8, [rdi + rdi]
add edx, 0x200000
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x40], rax
xor r13d, r13d
test rax, rax
je 0x180006cb9
mov r13, rax
mov qword [rsp + 0x50], rax
mov r12, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
mov edx, dword [rsp + 0x28]
xor r8d, r8d
jmp 0x180006a43
lea eax, [rdi + 1]
mov r8d, eax
add r8, r8
mov rcx, r14
call sym.KERNEL32.dll_RtlMoveMemory
jmp 0x180006b9c
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rbx + rsi*2], r13w
jne 0x180006c4f
mov rdi, rsi
mov dword [rsp + 0x20], edi
cmp r12d, esi
jbe 0x180006c8c
test r14, r14
je 0x180006c8c
cmp r14, rbx
je 0x180006ba1
lea eax, [rsi + 1]
mov r8d, eax
add r8, r8
mov rdx, rbx
mov rcx, r14
call sym.KERNEL32.dll_RtlMoveMemory
jmp 0x180006ba1
inc edi
mov dword [rsp + 0x20], edi
jmp 0x180006ba1
mov ecx, 8
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
mov edi, dword [rsp + 0x20]
jmp 0x180006ba1
mov rdi, rdx
jmp 0x180006bd0
mov ecx, 8
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
mov edi, dword [rsp + 0x20]
jmp 0x180006b9c
mov rax, r12
mov rcx, qword [rsp + 0x38]
sub rax, rcx
sar rax, 1
jmp 0x180006aeb
xor r8d, r8d
mov edi, r8d
mov dword [rsp + 0x20], r8d
jmp 0x180006b58
test r15, r15
je 0x180006d1f
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov edi, dword [rsp + 0x20]
cmp qword [rsp + 0x40], r13
jne 0x180006d5a
mov ecx, esi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetErrorMode]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180024680
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov edi, dword [rsp + 0x20]
jmp 0x180006d26
mov ecx, 0x57
call qword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
nop dword [rax + rax]
xor eax, eax
jmp 0x180006d36