Function at 0x14005d2f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r12d, r12d
mov r15, rcx
add rcx, 8
mov dword [rbp - 0x61], r12d
test dl, dl
je 0x14005d361
call fcn.140059c70
test al, al
jne 0x14005d37b
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400ce8e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
cmp qword [r15 + 0x20], 8
jb 0x14005d36c
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005d337
test al, 0x10
je 0x14005d337
mov rdi, 0xffffffffffffffff
mov qword [rbp - 0x59], r12
mov r8, rdi
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
lea rsi, str.reports
nop dword [rax]
inc r8
cmp word [rsi + r8*2], r12w
jne 0x14005d3a0
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e1e0
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 8]
call fcn.140029350
mov rcx, rax
call fcn.140059c70
test al, al
lea rcx, [rbp - 0x39]
sete bl
call fcn.1400292c0
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005d420
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d41b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d41b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
test bl, bl
jne 0x14005d337
mov qword [rbp - 0x39], r12
lea rdx, str.jank_reports
mov qword [rbp - 0x29], r12
mov r8, rdi
mov qword [rbp - 0x21], 7
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14005d442
lea rcx, [rbp - 0x39]
call fcn.14001e1e0
mov r8, rdi
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], r12w
jne 0x14005d470
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e1e0
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x19]
lea rcx, [r15 + 8]
call fcn.140029350
mov rcx, rax
lea r8, [rbp - 0x39]
lea rdx, [rbp + 7]
call fcn.140029350
mov rcx, rax
call fcn.140059c70
test al, al
lea rcx, [rbp + 7]
sete bl
call fcn.1400292c0
lea rcx, [rbp - 0x19]
call fcn.1400292c0
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005d502
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d4fd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d54a
call fcn.1400ce80c
mov rdx, qword [rbp - 0x21]
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r12w
cmp rdx, 8
jb 0x14005d556
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d551
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d551
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
test bl, bl
jne 0x14005d337
mov qword [rbp - 0x39], r12
lea rdx, str.gwpasan_reports
mov qword [rbp - 0x29], r12
mov r8, rdi
mov qword [rbp - 0x21], 7
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14005d580
lea rcx, [rbp - 0x39]
call fcn.14001e1e0
mov r8, rdi
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
inc r8
cmp word [rsi + r8*2], r12w
jne 0x14005d5a6
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e1e0
lea r8, [rbp - 0x59]
lea rdx, [rbp + 7]
lea rcx, [r15 + 8]
call fcn.140029350
mov rcx, rax
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.140029350
mov rcx, rax
call fcn.140059c70
test al, al
lea rcx, [rbp - 0x19]
sete bl
call fcn.1400292c0
lea rcx, [rbp + 7]
call fcn.1400292c0
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005d638
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d633
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d680
call fcn.1400ce80c
mov rdx, qword [rbp - 0x21]
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r12w
cmp rdx, 8
jb 0x14005d68c
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d687
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d687
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
test bl, bl
jne 0x14005d337
mov qword [rbp - 0x39], r12
lea rdx, str.fulldmp_reports
mov qword [rbp - 0x29], r12
mov r8, rdi
mov qword [rbp - 0x21], 7
nop
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14005d6b0
lea rcx, [rbp - 0x39]
call fcn.14001e1e0
mov r8, rdi
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
inc r8
cmp word [rsi + r8*2], r12w
jne 0x14005d6d6
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e1e0
lea r8, [rbp - 0x59]
lea rdx, [rbp + 7]
lea rcx, [r15 + 8]
call fcn.140029350
mov rcx, rax
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.140029350
mov rcx, rax
call fcn.140059c70
test al, al
lea rcx, [rbp - 0x19]
sete bl
call fcn.1400292c0
lea rcx, [rbp + 7]
call fcn.1400292c0
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005d768
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d763
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d7b0
call fcn.1400ce80c
mov rdx, qword [rbp - 0x21]
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r12w
cmp rdx, 8
jb 0x14005d7bc
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d7b7
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d7b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
test bl, bl
jne 0x14005d337
lea rdx, [rbp - 0x19]
mov rcx, r15
call fcn.14006e770
mov rcx, rax
call fcn.140059c70
lea rcx, [rbp - 0x19]
movzx ebx, al
call fcn.1400292c0
test bl, bl
je 0x14005d337
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.14006e620
mov rbx, qword [rbp - 0x79]
mov rsi, qword [rbp - 0x71]
cmp rbx, rsi
je 0x14005d85c
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14005d812
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14005d853
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14005d8fb
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14005d83c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005d8fb
test al, 0x10
je 0x14005d8fb
add rbx, 0x20
cmp rbx, rsi
jne 0x14005d805
mov qword [rbp - 0x39], r12
lea rdx, str.settings.dat
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], 7
inc rdi
cmp word [rdx + rdi*2], r12w
jne 0x14005d873
mov r8, rdi
lea rcx, [rbp - 0x39]
call fcn.14001e1e0
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
lea rcx, [r15 + 8]
call fcn.140029350
mov rdx, rax
lea rcx, [r15 + 0x28]
call fcn.14006ed20
test al, al
lea rcx, [rbp - 0x19]
sete bl
call fcn.1400292c0
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14005d8f7
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d8f2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d8f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
test bl, bl
je 0x14005d900
xor sil, sil
jmp 0x14005d903
mov sil, 1
mov rbx, qword [rbp - 0x79]
test rbx, rbx
je 0x14005d965
mov rdi, qword [rbp - 0x71]
cmp rbx, rdi
je 0x14005d92a
mov rcx, rbx
call fcn.1400292c0
add rbx, 0x20
cmp rbx, rdi
jne 0x14005d915
mov rbx, qword [rbp - 0x79]
mov rdx, qword [rbp - 0x69]
mov rax, rbx
sub rdx, rbx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x14005d95d
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d95d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400ce80c
movzx eax, sil
jmp 0x14005d339