Function at 0x14005b460
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rsp + 0x178], rax
movzx edi, r8b
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14005b498
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14005b6c0
test dil, dil
je 0x14005b5c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14005b5c7
mov dl, 1
mov rcx, rbx
call fcn.14005afd0
test al, al
jne 0x14005b6c0
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005b4e1
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14000ea50
mov rbx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 2
mov r9d, 0x5d
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea rcx, [rsp + 0x50]
call fcn.14000d640
nop
mov dword [rsp + 0x30], 3
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005b553
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
lea rdx, str._not_a_directory
mov rcx, rax
call fcn.140001010
nop
lea rcx, [rsp + 0x50]
call fcn.14000d850
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14005b6bc
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b6b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b6b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x14005b5d4
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x158]
call fcn.14000ea50
mov rbx, rax
mov dword [rsp + 0x30], 4
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x62
lea r8, str................._artifacts_sentry0.4.186crashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea rcx, [rsp + 0x50]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 0xc
lea rdx, str.CreateDirectory
mov rcx, rax
call fcn.140001010
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005b65e
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
nop
lea rcx, [rsp + 0x50]
call fcn.14000dae0
nop
mov rdx, qword [rsp + 0x170]
cmp rdx, 0x10
jb 0x14005b6bc
inc rdx
mov rcx, qword [rsp + 0x158]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b6b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b6b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
xor al, al
jmp 0x14005b6c2
mov al, 1
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.140058920
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret