Function at 0x14005d5d0
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 0x14005d641
call fcn.140059f50
test al, al
jne 0x14005d65b
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400cebd0
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 0x14005d64c
mov rcx, qword [r15 + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005d617
test al, 0x10
je 0x14005d617
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 0x14005d680
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e4a0
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 8]
call fcn.140029610
mov rcx, rax
call fcn.140059f50
test al, al
lea rcx, [rbp - 0x39]
sete bl
call fcn.140029580
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005d700
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d6fb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d6fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
test bl, bl
jne 0x14005d617
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 0x14005d722
lea rcx, [rbp - 0x39]
call fcn.14001e4a0
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 0x14005d750
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e4a0
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x19]
lea rcx, [r15 + 8]
call fcn.140029610
mov rcx, rax
lea r8, [rbp - 0x39]
lea rdx, [rbp + 7]
call fcn.140029610
mov rcx, rax
call fcn.140059f50
test al, al
lea rcx, [rbp + 7]
sete bl
call fcn.140029580
lea rcx, [rbp - 0x19]
call fcn.140029580
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005d7e2
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d7dd
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d82a
call fcn.1400ceafc
mov rdx, qword [rbp - 0x21]
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r12w
cmp rdx, 8
jb 0x14005d836
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d831
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d831
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
test bl, bl
jne 0x14005d617
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 0x14005d860
lea rcx, [rbp - 0x39]
call fcn.14001e4a0
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 0x14005d886
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e4a0
lea r8, [rbp - 0x59]
lea rdx, [rbp + 7]
lea rcx, [r15 + 8]
call fcn.140029610
mov rcx, rax
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.140029610
mov rcx, rax
call fcn.140059f50
test al, al
lea rcx, [rbp - 0x19]
sete bl
call fcn.140029580
lea rcx, [rbp + 7]
call fcn.140029580
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005d918
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d913
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005d960
call fcn.1400ceafc
mov rdx, qword [rbp - 0x21]
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r12w
cmp rdx, 8
jb 0x14005d96c
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005d967
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005d967
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
test bl, bl
jne 0x14005d617
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 0x14005d990
lea rcx, [rbp - 0x39]
call fcn.14001e4a0
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 0x14005d9b6
mov rdx, rsi
lea rcx, [rbp - 0x59]
call fcn.14001e4a0
lea r8, [rbp - 0x59]
lea rdx, [rbp + 7]
lea rcx, [r15 + 8]
call fcn.140029610
mov rcx, rax
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
call fcn.140029610
mov rcx, rax
call fcn.140059f50
test al, al
lea rcx, [rbp - 0x19]
sete bl
call fcn.140029580
lea rcx, [rbp + 7]
call fcn.140029580
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x14005da48
mov rcx, qword [rbp - 0x59]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005da43
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005da90
call fcn.1400ceafc
mov rdx, qword [rbp - 0x21]
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], 7
mov word [rbp - 0x59], r12w
cmp rdx, 8
jb 0x14005da9c
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005da97
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005da97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
test bl, bl
jne 0x14005d617
lea rdx, [rbp - 0x19]
mov rcx, r15
call fcn.14006ea50
mov rcx, rax
call fcn.140059f50
lea rcx, [rbp - 0x19]
movzx ebx, al
call fcn.140029580
test bl, bl
je 0x14005d617
lea rdx, [rbp - 0x79]
mov rcx, r15
call fcn.14006e900
mov rbx, qword [rbp - 0x79]
mov rsi, qword [rbp - 0x71]
cmp rbx, rsi
je 0x14005db3c
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14005daf2
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14005db33
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14005dbdb
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14005db1c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005dbdb
test al, 0x10
je 0x14005dbdb
add rbx, 0x20
cmp rbx, rsi
jne 0x14005dae5
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 0x14005db53
mov r8, rdi
lea rcx, [rbp - 0x39]
call fcn.14001e4a0
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
lea rcx, [r15 + 8]
call fcn.140029610
mov rdx, rax
lea rcx, [r15 + 0x28]
call fcn.14006f000
test al, al
lea rcx, [rbp - 0x19]
sete bl
call fcn.140029580
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14005dbd7
mov rcx, qword [rbp - 0x39]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005dbd2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005dbd2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ceafc
test bl, bl
je 0x14005dbe0
xor sil, sil
jmp 0x14005dbe3
mov sil, 1
mov rbx, qword [rbp - 0x79]
test rbx, rbx
je 0x14005dc45
mov rdi, qword [rbp - 0x71]
cmp rbx, rdi
je 0x14005dc0a
mov rcx, rbx
call fcn.140029580
add rbx, 0x20
cmp rbx, rdi
jne 0x14005dbf5
mov rbx, qword [rbp - 0x79]
mov rdx, qword [rbp - 0x69]
mov rax, rbx
sub rdx, rbx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x14005dc3d
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005dc3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400ceafc
movzx eax, sil
jmp 0x14005d619