Function at 0x140003410
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rdi, rcx
mov rbx, 0xffffffffffffffff
test dl, dl
je 0x1400035e7
mov r13, qword [rcx + 0x10]
mov r14, rcx
mov r15, qword [rcx + 0x18]
cmp r15, 0x10
jb 0x140003459
mov r14, qword [rcx]
test r13, r13
je 0x1400036ea
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rsi, [0x1400c5140]
mov rcx, rsi
lea rdx, [0x1400c5142]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rsp + rax + 0x40], 1
inc rcx
cmp rcx, rdx
jne 0x140003490
lea rax, [r13 - 1]
mov rcx, rbx
cmp rax, rbx
cmovb rcx, rax
add rcx, r14
movzx eax, byte [rcx]
cmp byte [rsp + rax + 0x40], 0
jne 0x1400034d6
nop dword [rax + rax]
cmp rcx, r14
je 0x1400036ea
dec rcx
movzx eax, byte [rcx]
cmp byte [rsp + rax + 0x40], 0
je 0x1400034c0
sub rcx, r14
cmp rcx, rbx
je 0x1400036ea
mov r14, rdi
cmp r15, 0x10
jb 0x1400034ee
mov r14, qword [rdi]
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400c5142]
nop word [rax + rax]
movzx eax, byte [rsi]
mov byte [rsp + rax + 0x40], 1
inc rsi
cmp rsi, rcx
jne 0x140003510
lea rax, [r13 - 1]
mov r8, rbx
cmp rax, rbx
cmovb r8, rax
add r8, r14
movzx eax, byte [r8]
cmp byte [rsp + rax + 0x40], 0
jne 0x140003557
nop dword [rax]
cmp r8, r14
je 0x1400035da
dec r8
movzx eax, byte [r8]
cmp byte [rsp + rax + 0x40], 0
je 0x140003540
sub r8, r14
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0xf
cmp r13, r8
cmovb r8, r13
mov rdx, rdi
cmp r15, 0x10
jb 0x140003588
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.140004270
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140002f80
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400035e7
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r8, rbx
jmp 0x14000355a
call fcn.14007afd4
mov r8, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400035f4
mov r8, qword [rdi]
mov edx, 0x104
mov r9d, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea rax, [rsp + 0x40]
nop dword [rax]
lea rbx, [rbx + 1]
cmp byte [rax + rbx], 0
jne 0x140003610
cmp byte [rsp + rbx + 0x3f], 0x2f
jne 0x140003626
mov byte [rsp + rbx + 0x3f], 0
lea rbx, [rsp + 0x40]
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140003668
cmp al, 0x2f
je 0x14000363c
cmp al, 0x5c
jne 0x14000365e
mov byte [rbx], 0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
je 0x14000365b
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov byte [rbx], 0x5c
inc rbx
movzx eax, byte [rbx]
test al, al
jne 0x140003634
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
je 0x140003685
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400036bb
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400036b6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400036f6
mov rcx, r8
call fcn.14007afd4
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
cmp r15, 0x10
jb 0x1400036bb
lea rdx, [r15 + 1]
jmp 0x140003692
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3