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

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x2d8], rbx
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rbp + 0x180], rax
movzx r14d, r9b
mov rdi, r8
mov ebx, edx
mov rsi, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], r8
lea r8, [0x1400280e0]
lea rdx, str.C:Windows_
lea rcx, [rbp - 8]
call fcn.140004440
nop
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001d01
test al, 0x10
jne 0x140001d17
lea rcx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rcx, qword [rbp - 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rax, [rsp + 0x70]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x78], 0xf
xor r15d, r15d
mov qword [rbp - 0x80], r15
mov byte [rsp + 0x70], r15b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140003710
nop
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x50], r15b
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140003710
nop
lea r8, [rsp + 0x70]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400018a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov r8d, 0x104
lea rdx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], r15b
cmp byte [rbp + 0x70], r15b
jne 0x140001dbb
mov r8d, r15d
jmp 0x140001dcd
lea rax, [rbp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140001dc3
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400035e0
mov r9d, 2
lea rcx, [rsp + 0x30]
call fcn.140003390
mov rbx, rax
mov rcx, qword [rsp + 0x48]
cmp rcx, 0x10
jb 0x140001e4e
inc rcx
mov rdx, qword [rsp + 0x30]
cmp rcx, 0x1000
jb 0x140001e46
test dl, 0x1f
je 0x140001e16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x140001e26
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rdx, rax
cmp rdx, 8
jae 0x140001e36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rdx, 0x27
jbe 0x140001e43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rax
mov rcx, rdx
call fcn.140014a30
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
cmp byte [rbp + 0x70], 0
jne 0x140001e6c
mov r8, r15
jmp 0x140001e7e
lea rax, [rbp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140001e74
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400035e0
nop
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400024e0
nop
lea r8, [0x140018a74]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.1400043d0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.1400045b0
nop
mov rax, qword [rbp - 0x50]
cmp rax, 0x10
jb 0x140001f20
inc rax
mov rcx, qword [rbp - 0x68]
cmp rax, 0x1000
jb 0x140001f1b
test cl, 0x1f
je 0x140001eeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001efb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001f0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140001f18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x68], 0
mov rax, qword [rbp + 0x50]
cmp rax, 0x10
jb 0x140001f8a
inc rax
mov rcx, qword [rbp + 0x38]
cmp rax, 0x1000
jb 0x140001f85
test cl, 0x1f
je 0x140001f55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001f65
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001f75
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140001f82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rbp + 0x50], 0xf
mov qword [rbp + 0x48], r15
mov byte [rbp + 0x38], 0
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140001ff6
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x140001ff1
test cl, 0x1f
je 0x140001fc1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140001fd1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140001fe1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140001fee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
lea r8, [0x1400280e0]
lea rdx, str.C:Windows_
lea rcx, [rsp + 0x70]
call fcn.140004440
nop
lea r8, [0x140018a74]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400043d0
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400045b0
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x1400020a3
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x14000209e
test cl, 0x1f
je 0x14000206e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000207e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000208e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000209b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r15
mov byte [rsp + 0x50], 0
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x140002111
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x14000210c
test cl, 0x1f
je 0x1400020dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400020ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400020fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140002109
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rbp - 0x78], 0xf
mov qword [rbp - 0x80], r15
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], r15
mov byte [rsp + 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140003710
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
lea rdx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
sete bl
lea rcx, [rsp + 0x30]
call fcn.140002520
test bl, bl
je 0x140002122
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 0x10
cmovae rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test r14b, r14b
je 0x1400021ce
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae r8, qword [rbp - 0x28]
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x70]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
mov rax, qword [rbp - 0x10]
cmp rax, 0x10
jb 0x140002228
inc rax
mov rcx, qword [rbp - 0x28]
cmp rax, 0x1000
jb 0x140002223
test cl, 0x1f
je 0x1400021f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140002203
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140002213
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140002220
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x28], 0
mov rax, qword [rbp + 0x30]
cmp rax, 0x10
jb 0x140002292
inc rax
mov rcx, qword [rbp + 0x18]
cmp rax, 0x1000
jb 0x14000228d
test cl, 0x1f
je 0x14000225d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000226d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000227d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000228a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rbp + 0x30], 0xf
mov qword [rbp + 0x28], r15
mov byte [rbp + 0x18], 0
mov rax, qword [rbp + 0x10]
cmp rax, 0x10
jb 0x1400022fc
inc rax
mov rcx, qword [rbp - 8]
cmp rax, 0x1000
jb 0x1400022f7
test cl, 0x1f
je 0x1400022c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400022d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400022e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1400022f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140014a30
mov qword [rbp + 0x10], 0xf
mov qword [rbp + 8], r15
mov byte [rbp - 8], 0
mov rcx, rsi
call fcn.140002520
nop
mov rcx, rdi
call fcn.140002520
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400149d0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret