Function at 0x140017f40
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14011a288]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0xb8]
call sub.VCRUNTIME140.dll_wcsrchr
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140017f90
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
jmp 0x140017f9e
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x48], rax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140018025
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2e
jne 0x140017fe1
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
test eax, eax
je 0x140018025
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2e
jne 0x14001806d
mov eax, 2
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
cmp eax, 0x2e
jne 0x14001806d
mov eax, 2
imul rax, rax, 2
mov rcx, qword [rsp + 0x48]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14001806d
cmp qword [rsp + 0x40], 0
je 0x140018066
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.140017f40
mov dword [rsp + 0x3c], eax
mov eax, 0x5c
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov eax, dword [rsp + 0x3c]
jmp 0x140018324
xor eax, eax
jmp 0x140018324
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14001bb70
test eax, eax
jne 0x14001813b
movzx eax, word [rsp + 0x38]
and eax, 0xf000
cmp eax, 0x4000
jne 0x1400180b4
xor eax, eax
jmp 0x140018324
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x1a8]
and eax, 8
test eax, eax
je 0x1400180f7
mov rax, qword [rsp + 0xb0]
mov r9, qword [rsp + 0xb8]
lea r8, str.Cant_create_directory__ls
mov edx, 0x11
mov rcx, rax
call fcn.14000a870
mov eax, 0xffffffe7
jmp 0x140018324
mov rcx, qword [rsp + 0xb8]
call fcn.140016520
test eax, eax
je 0x140018136
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0xb0]
mov r9, qword [rsp + 0xb8]
lea r8, str.Cant_create_directory__ls:_Conflicting_file_cannot_be_removed
mov edx, dword [rax]
call fcn.14000a870
mov eax, 0xffffffe7
jmp 0x140018324
jmp 0x1400181c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
je 0x140018181
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x14
je 0x140018181
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0xb0]
mov r9, qword [rsp + 0xb8]
lea r8, str.Cant_test_directory__ls
mov edx, dword [rax]
call fcn.14000a870
mov eax, 0xffffffe7
jmp 0x140018324
cmp qword [rsp + 0x40], 0
je 0x1400181c9
xor eax, eax
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.140017f40
mov dword [rsp + 0x3c], eax
mov eax, 0x5c
mov rcx, qword [rsp + 0x40]
mov word [rcx], ax
cmp dword [rsp + 0x3c], 0
je 0x1400181c9
mov eax, dword [rsp + 0x3c]
jmp 0x140018324
mov rax, qword [rsp + 0xb0]
movzx eax, word [rax + 0x90]
not eax
and eax, 0x1ff
mov word [rsp + 0x34], ax
movzx eax, word [rsp + 0x34]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
or eax, 0x1c0
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
and eax, 0x1fd
mov word [rsp + 0x30], ax
mov rcx, qword [rsp + 0xb8]
call fcn.140041ab0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140018234
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x1400182b0
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400182a3
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x34]
cmp eax, ecx
je 0x14001828f
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14001c7a0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x7c]
bts eax, 0x1d
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 0x7c], eax
mov rax, qword [rsp + 0x58]
movzx ecx, word [rsp + 0x34]
mov word [rax + 0x40], cx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140018324
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140041ed0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xb0]
call fcn.14001bb70
test eax, eax
jne 0x1400182fb
movzx eax, word [rsp + 0x38]
and eax, 0xf000
cmp eax, 0x4000
jne 0x1400182fb
xor eax, eax
jmp 0x140018324
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0xb0]
mov r9, qword [rsp + 0xb8]
lea r8, str.Failed_to_create_dir__ls
mov edx, dword [rax]
call fcn.14000a870
mov eax, 0xffffffe7
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400f0970
add rsp, 0xa8
ret