Function at 0x14000495c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
mov rdi, rcx
call fcn.1400014bc
xor r15d, r15d
mov rcx, rax
test rax, rax
je 0x140004c38
mov rax, qword [rax]
call qword [rax + 0x18]
lea r13d, [r15 + 1]
mov edx, 0x104
mov ecx, r13d
lea rbx, [rax + 0x18]
mov eax, dword [rbx - 0xc]
sub ecx, dword [rbx - 8]
sub eax, edx
or ecx, eax
mov qword [rbp + 0x48], rbx
jge 0x1400049c2
lea rcx, [rbp + 0x48]
call fcn.140001b30
mov rbx, qword [rbp + 0x48]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
sete dil
test rbx, rbx
jne 0x1400049de
mov eax, r15d
jmp 0x1400049f2
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002be98
test eax, eax
js 0x140004c43
cmp eax, dword [rbx - 0xc]
jg 0x140004c43
mov dword [rbx - 0x10], eax
or r12d, 0xffffffff
cdqe
mov word [rbx + rax*2], r15w
test dil, dil
je 0x140004a18
mov esi, 0x80004005
jmp 0x140004c04
movsxd rdi, dword [rbx - 0x10]
mov sil, r15b
mov eax, r15d
mov edx, 0x5c
test edi, edi
jle 0x140004a9b
movsxd r14, eax
cmp word [rbx + r14*2], 0x2f
jne 0x140004a6e
test sil, sil
jne 0x140004a69
mov sil, r13b
test edi, edi
js 0x140004c43
mov eax, dword [rbx - 0xc]
mov ecx, r13d
sub ecx, dword [rbx - 8]
sub eax, edi
or ecx, eax
jge 0x140004a69
mov edx, edi
lea rcx, [rbp + 0x48]
call fcn.140001b30
mov rbx, qword [rbp + 0x48]
mov edx, 0x5c
mov word [rbx + r14*2], dx
lea rax, [r14*2 + 2]
sar rax, 1
cmp eax, edi
jl 0x140004a2b
test sil, sil
je 0x140004a9b
test edi, edi
js 0x140004c43
cmp edi, dword [rbx - 0xc]
jg 0x140004c43
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r15w
lea r14, [rbx - 0x10]
cmp dword [r14], r15d
jle 0x140004ad5
movzx ecx, word [rbx]
mov rsi, rbx
test cx, cx
je 0x140004ac3
cmp cx, dx
je 0x140004ad0
add rsi, 2
movzx ecx, word [rsi]
test cx, cx
jne 0x140004aaf
mov ecx, r15d
cmp cx, dx
mov rax, r15
cmove rax, rsi
mov rsi, rax
test rsi, rsi
jne 0x140004ada
mov esi, r12d
jmp 0x140004ae0
sub rsi, rbx
sar rsi, 1
mov r13d, 0x5c
cmp esi, r12d
jne 0x140004af0
mov r8d, dword [r14]
jmp 0x140004af3
mov r8d, esi
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.140005644
mov rdi, qword [rbp + 0x50]
mov rcx, rdi
call fcn.140006830
test al, al
jne 0x140004b35
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140004b35
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x140004b35
cmp eax, 0xb7
jne 0x140004bb5
cmp esi, r12d
je 0x140004be1
lea eax, [rsi + 1]
test eax, eax
js 0x140004b8d
cmp eax, dword [r14]
jge 0x140004b8d
cdqe
lea rsi, [rbx + rax*2]
test rsi, rsi
je 0x140004b8d
movzx ecx, word [rsi]
test cx, cx
je 0x140004b72
cmp cx, r13w
je 0x140004b80
add rsi, 2
movzx ecx, word [rsi]
test cx, cx
jne 0x140004b5d
mov ecx, r15d
cmp cx, r13w
mov rax, r15
cmove rax, rsi
mov rsi, rax
test rsi, rsi
je 0x140004b8d
sub rsi, rbx
sar rsi, 1
jmp 0x140004b90
mov esi, r12d
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140004bac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rbp + 0x48]
jmp 0x140004ae6
movzx esi, ax
lea rdx, [rdi - 0x18]
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140004c00
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140004c00
lea rdx, [rdi - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140004bfd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov esi, r15d
mov rbx, qword [rbp + 0x48]
lea rdx, [rbx - 0x18]
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x140004c21
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001880
int3
mov ecx, 0x80070057
call fcn.140001880
int3