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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x4b0
mov rax, qword [0x1800a3d18]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea eax, [rcx + 8]
mov qword [rsp + 0x58], r8
mov rbx, qword [rsp + 0x58]
mov r13, r9
mov qword [rsp + 0x80], rdx
mov rsi, rdx
mov dword [rsp + 0x40], eax
cmp ecx, eax
jae case.0x180068a85.2
mov rbp, qword [rsp + 0x58]
lea r12d, [rcx - 0xd5]
mov r15d, dword [rsp + 0x60]
lea rdx, [0x180000000]
mov dword [rsp + 0x44], r12d
mov ecx, eax
nop
cmp r12d, 0x10
ja case.default.0x180068a85
mov ecx, dword [rdx + r12*4 + 0x68f14]
add rcx, rdx
jmp rcx
mov rcx, qword [rsi + 0x20]
mov qword [rsp + 0x68], 0
test rcx, rcx
je 0x180068ab7
lea rdx, [0x180093db0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x68], rax
lea rdx, [0x180000000]
jmp case.0x180068a85.3
cmp dword [r8], 0
je 0x180068b38
cmp qword [rsi + 0x10], 0
je case.0x180068a85.3
mov edi, 0x79
nop dword [rax]
mov eax, edi
sub eax, 0x79
je 0x180068af8
cmp eax, 1
jne 0x180068b25
lea rdx, [0x180093db0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x68], rax
jmp 0x180068b25
mov rax, qword [rsi + 0x10]
lea r8, str._s_c_s
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x90]
mov r9, r13
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1f4
call fcn.18008e040
inc edi
cmp edi, 0x7b
jb 0x180068ad0
lea rdx, [0x180000000]
jmp case.0x180068a85.3
cmp qword [rsi + 0x10], 0
je case.0x180068a85.3
mov edi, 0x128
cmp edi, 0x128
je 0x180068b74
cmp edi, 0xd960
jne 0x180068bcb
lea rdx, [0x180093db0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x68], rax
jmp 0x180068bcb
mov edx, 0x2f
mov rcx, r13
call sub.VCRUNTIME140.dll_strrchr
mov rcx, rax
test rax, rax
jne 0x180068b9e
lea edx, [rax + 0x5c]
mov rcx, r13
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
mov rcx, rax
cmove rcx, r13
mov rax, qword [rsi + 0x10]
lea r8, str._.s__s
sub ecx, r13d
mov qword [rsp + 0x28], rax
mov r9d, ecx
mov qword [rsp + 0x20], r13
lea rcx, [rsp + 0x90]
mov edx, 0x1f4
call fcn.18008e040
add edi, 0xd838
cmp edi, 0x1b070
jbe 0x180068b48
lea rdx, [0x180000000]
jmp case.0x180068a85.3
mov rax, qword [r13]
xor r12d, r12d
mov ecx, dword [rax + 0x10]
sub ecx, dword [rax + 0x70]
test ecx, ecx
jle 0x180068d60
xor r14d, r14d
mov esi, 0x96
nop word [rax + rax]
mov eax, esi
sub eax, 0x96
je 0x180068d1a
cmp eax, 1
jne 0x180068d29
cmp dword [rbp + 0x38], 0
jne 0x180068d29
cmp dword [r8], 0
je 0x180068c40
test byte [rbp + 0x70], 4
jne 0x180068d29
mov edi, 0xd0
nop word [rax + rax]
mov eax, edi
sub eax, 0xce
je 0x180068cfe
sub eax, 1
je 0x180068cba
cmp eax, 1
jne 0x180068d05
mov rcx, qword [r13]
lea r9, [rsp + 0x60]
mov r8, qword [rbp + 0x30]
mov qword [rsp + 0x60], rbp
mov eax, dword [rcx]
mov rdx, qword [rcx + 8]
mov dword [rsp + 0x48], eax
mov eax, dword [rcx + 0x10]
mov dword [rsp + 0x70], eax
mov rax, qword [rcx + 0x18]
mov ecx, 0x37
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.180059c70
mov r15d, eax
jmp 0x180068d05
test r15d, r15d
je 0x180068d05
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [0x180092c27]
mov dword [rsp + 0x78], 3
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0
mov ecx, 0xe3
call fcn.18000a640
jmp 0x180068d05
mov dword [rbp + 0x38], 1
dec edi
cmp edi, 0xcd
ja 0x180068c50
mov r8, qword [rsp + 0x58]
jmp 0x180068d29
mov rax, qword [r13]
mov rcx, qword [rax + 0x80]
mov rbp, qword [r14 + rcx]
inc esi
cmp esi, 0x98
jb 0x180068c10
mov rax, qword [r13]
inc r12d
add r14, 8
mov ecx, dword [rax + 0x10]
sub ecx, dword [rax + 0x70]
cmp r12d, ecx
jl 0x180068c01
mov rsi, qword [rsp + 0x80]
lea rdx, [0x180000000]
mov r12d, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
inc r12d
mov dword [rsp + 0x44], r12d
lea eax, [r12 + 0xd5]
cmp eax, ecx
jae case.0x180068a85.2
mov r8, qword [rsp + 0x58]
jmp 0x180068a70
mov qword [rsp + 0x50], 0
test r13, r13
jne 0x180068dad
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x180000000]
jmp case.0x180068a85.3
mov ecx, 0x360
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov r14, rax
test rax, rax
jne 0x180068dd7
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x180000000]
jmp case.0x180068a85.3
mov esi, 0x67
nop dword [rax]
cmp esi, 0x67
je 0x180068e82
cmp esi, 0xa76
jne 0x180068ea5
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180068e74
test al, 0x10
je 0x180068e74
mov edi, 0x98
mov eax, edi
sub eax, 0x98
je 0x180068e29
cmp eax, 1
jne 0x180068e68
mov byte [r14 + 0x258], 0
jmp 0x180068e68
lea rcx, [rsp + 0x290]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180068e35
mov eax, dword [0x1800966a0]
lea rdx, [r14 + 8]
mov dword [rcx], eax
movzx eax, word [0x1800966a4]
mov word [rcx + 4], ax
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [r14], rax
inc edi
cmp edi, 0x9a
jb 0x180068e11
jmp 0x180068ea5
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r14d, r14d
jmp 0x180068ea5
mov r9, r13
mov qword [rsp + 0x50], 0x104
lea r8, [rsp + 0x290]
mov edx, 0xe0
lea rcx, [rsp + 0x50]
call fcn.180005b40
add esi, 0xa0f
cmp esi, 0x141e
jbe 0x180068de0
mov rsi, qword [rsp + 0x80]
lea rdx, [0x180000000]
mov qword [rsp + 0x50], r14
jmp case.0x180068a85.3
mov rbx, qword [rsp + 0x68]
jmp case.0x180068a85.3
mov rbx, qword [rsp + 0x50]
jmp case.0x180068a85.3
mov rax, rbx
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.18008f350
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret