Function at 0x1400ca5d0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x130
mov rdi, rdx
mov rsi, rcx
lea rax, str.create_directory
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rdx
test r8, r8
je 0x1400ca619
mov rbx, r8
mov dword [r8], 0
call fcn.140083320
mov qword [rbx + 8], rax
mov dword [rsp + 0x20], 0
call fcn.140083320
mov dword [rsp + 0x50], 0
call fcn.140083320
mov qword [rsp + 0x58], rax
test byte [rdi], 1
je 0x1400ca643
mov rcx, qword [rdi + 0x10]
jmp 0x1400ca647
lea rcx, [rdi + 2]
lea rdx, [rsp + 0xe0]
xor r8d, r8d
call fcn.1400d1d40
cmp eax, 0xffffffff
je 0x1400ca733
movups xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x20], xmm0
mov eax, 0xf000
and eax, dword [rsp + 0xe0]
cmp eax, 0x4000
jne 0x1400ca7d6
lea rdi, [rsi + 2]
test byte [rsi], 1
mov rcx, rdi
je 0x1400ca691
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
test eax, eax
je 0x1400ca7f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x11
jne 0x1400ca7ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call fcn.1400831b0
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
call fcn.140083320
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0
call fcn.140083320
mov qword [rsp + 0x48], rax
test byte [rsi], 1
je 0x1400ca6f1
mov rdi, qword [rsi + 0x10]
lea rdx, [rsp + 0x90]
mov rcx, rdi
xor r8d, r8d
call fcn.1400d1d40
cmp eax, 0xffffffff
je 0x1400ca82d
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x30], xmm0
mov eax, 0xf000
and eax, dword [rsp + 0x90]
cmp eax, 0x4000
jne 0x1400ca8b4
jmp 0x1400ca8c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call fcn.1400831b0
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
cmp ebx, 0x14
je 0x1400ca7d6
cmp ebx, 2
je 0x1400ca7d6
test ebx, ebx
je 0x1400ca66a
lea rax, str.posix_stat
mov qword [rsp + 0x90], rax
lea rsi, [rsp + 0x20]
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0x20], 0
call fcn.140083320
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x90]
lea rdx, [rsp + 0x50]
call fcn.1400d1f90
lea rcx, [rsp + 0x70]
mov rdx, rsi
jmp 0x1400ca8be
mov dword [rsp + 0x90], 0x14
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x90]
call fcn.1400cbb10
jmp 0x1400ca8c3
mov al, 1
jmp 0x1400ca8c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [rax]
call fcn.1400831b0
mov dword [rsp + 0x90], esi
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x90]
jmp 0x1400ca8be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [rax]
call fcn.1400831b0
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
test edi, edi
je 0x1400ca717
cmp edi, 2
je 0x1400ca8b4
cmp edi, 0x14
je 0x1400ca8b4
lea rax, str.posix_stat
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x30], 0
call fcn.140083320
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call fcn.1400d1f90
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x20]
call fcn.1400ca920
xor eax, eax
add rsp, 0x130
pop rbx
pop rdi
pop rsi
ret