Function at 0x140035030
Capabilities:
Create directory
Delete directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor edi, edi
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov r14d, 1
mov esi, r14d
mov dword [rax - 0x48], edi
mov qword [rax - 0x40], rdi
mov r15d, edi
call fcn.140034f08
mov rcx, qword [rbx + 0x10]
mov rbp, rax
call fcn.140034f08
mov rbx, rax
test rbp, rbp
je 0x14003525c
test rax, rax
je 0x14003525c
xor edx, edx
mov rcx, rbp
call fcn.140024dd4
test eax, eax
jne 0x1400350b2
mov ecx, 0x4000272e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14003525c
mov rcx, rbx
call fcn.14003540c
test eax, eax
jne 0x1400350c5
mov ecx, 0x40002749
jmp 0x1400350a1
xor edx, edx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x14003525c
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
mov r8d, r14d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
mov r15d, r14d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
or rdi, 0xffffffffffffffff
mov r12, rax
cmp rax, rdi
je 0x14003525a
xor r9d, r9d
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
mov rcx, rdi
xor eax, eax
inc rcx
cmp word [rbx + rcx*2], ax
jne 0x14003513f
movzx eax, word [rsp + 0x50]
lea ecx, [rcx + 0xa]
lea r13d, [rax + rcx*2]
mov ecx, r13d
call fcn.140011100
mov r14, rax
test rax, rax
je 0x140035247
mov r8d, r13d
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [r14], 0xa0000003
lea eax, [r13 - 8]
mov word [r14 + 4], ax
lea rcx, [r14 + 0x10]
xor eax, eax
mov word [r14 + 8], ax
movzx eax, word [rsp + 0x50]
mov word [r14 + 0xa], ax
movzx r8d, word [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
movzx eax, word [r14 + 0xa]
add ax, 2
mov word [r14 + 0xc], ax
xor eax, eax
inc rdi
cmp word [rbx + rdi*2], ax
jne 0x1400351ba
movzx ecx, word [r14 + 0xa]
add di, di
add rcx, 0x12
movzx r8d, di
add rcx, r14
mov word [r14 + 0xe], r8w
mov rdx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
xor edi, edi
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], edi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov dword [rsp + 0x38], r13d
xor edx, edx
mov qword [rsp + 0x30], r14
mov rcx, r12
mov dword [rsp + 0x28], 0x900a4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtFsControlFile]
nop dword [rax + rax]
test eax, eax
jns 0x140035243
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
jmp 0x140035249
mov esi, edi
jmp 0x140035249
xor edi, edi
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14003525c
xor edi, edi
cmp qword [rsp + 0x58], rdi
je 0x140035283
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test esi, esi
je 0x14003529b
test r15d, r15d
je 0x14003529b
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
nop dword [rax + rax]
lea r11, [rsp + 0x70]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret