Function at 0x14003cd40
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rbx, rdx
mov rsi, rcx
call fcn.140069614
mov rcx, rax
xor r15d, r15d
mov r8d, r15d
test rax, rax
setne r8b
test r8d, r8d
jne 0x14003cd8e
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x30], rdi
or r12, 0xffffffffffffffff
test rbx, rbx
je 0x14003cddd
test rbx, 0xffffffffffff0000
jne 0x14003cdce
movzx ebx, bx
mov ecx, ebx
call fcn.140069024
test rax, rax
je 0x14003cdf3
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140011830
jmp 0x14003cdef
mov rax, r12
inc rax
cmp word [rbx + rax*2], 0
jne 0x14003cdd1
jmp 0x14003cde0
mov eax, r15d
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140011b80
mov rdi, qword [rbp - 0x30]
movzx eax, word [rdi]
cmp ax, word [0x140296e0c]
jne 0x14003ce04
mov eax, r15d
jmp 0x14003ce09
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14003ce88
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.14003c180
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x14003ce6c
cmp dword [rdi + 0x10], 0
jl 0x14003ce5e
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14003ce5e
call fcn.1400116e0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14003ce54
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x30], rax
jmp 0x14003ce6c
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x30]
call fcn.140011b80
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003ce84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rbp - 0x30]
call fcn.140069614
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14003cea8
mov ecx, 0x80004005
call fcn.140011b60
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x28], rbx
lea rdx, [0x140296e0c]
test rdx, 0xffffffffffff0000
jne 0x14003cee9
movzx esi, dx
mov ecx, esi
call fcn.140069024
test rax, rax
je 0x14003cef9
mov r8d, esi
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.140011830
jmp 0x14003cef5
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140011b80
mov rbx, qword [rbp - 0x28]
mov r14d, r15d
mov dword [rbp + 0x50], r15d
mov esi, 1
lea rax, [rdi - 0x10]
mov qword [rbp - 0x10], rax
nop dword [rax]
test esi, esi
js 0x14003cf3b
cmp esi, dword [rax]
jg 0x14003cf3b
movsxd rax, esi
lea rcx, [rdi + rax*2]
lea rdx, [0x140298b44]
call fcn.1401f4328
mov rsi, rax
test rax, rax
je 0x14003cf3b
sub rsi, rdi
sar rsi, 1
jmp 0x14003cf3e
mov esi, r12d
inc esi
mov r8d, esi
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call fcn.14001e5c0
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x14003d081
cmp dword [rdi + 0x10], 0
jl 0x14003cf9c
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14003cf9c
call fcn.1400116e0
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14003cf8f
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x28], rax
jmp 0x14003d081
movsxd r14, dword [r13 - 0x10]
test r14d, r14d
jne 0x14003cff8
mov r14, qword [rdi]
cmp dword [rdi + 8], 0
je 0x14003d07d
cmp dword [rdi + 0x10], 0
jge 0x14003cfcf
cmp dword [rbx - 0xc], 0
jl 0x14003d0f8
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x14003d07d
lock add dword [rdi + 0x10], 0xffffffff
jg 0x14003cfe2
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x28], rax
jmp 0x14003d07d
test r13, r13
je 0x14003d119
mov eax, dword [rbx - 0x10]
mov dword [rbp + 0x58], eax
mov r15, r13
sub r15, rbx
sar r15, 1
test r14d, r14d
js 0x14003d10e
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r14d
or eax, ecx
jge 0x14003d03b
mov edx, r14d
lea rcx, [rbp - 0x28]
call fcn.140011b00
mov rbx, qword [rbp - 0x28]
mov eax, dword [rbp + 0x58]
lea rdi, [r14 + r14]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r15, rax
ja 0x14003d05f
lea r8, [rbx + r15*2]
call fcn.1401f377c
jmp 0x14003d067
mov r8, r13
call fcn.1401f3698
cmp r14d, dword [rbx - 0xc]
jg 0x14003d103
mov dword [rbx - 0x10], r14d
xor r15d, r15d
mov word [rdi + rbx], r15w
mov r14d, dword [rbp + 0x50]
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003d099
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x28]
movzx eax, word [rbx]
cmp ax, word [0x140296e0c]
jne 0x14003d0ae
mov eax, r15d
jmp 0x14003d0b3
sbb eax, eax
or eax, 1
test eax, eax
je 0x14003d0e7
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003d0e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14003d0e7
cmp eax, 3
je 0x14003d0e7
mov r14d, eax
mov dword [rbp + 0x50], eax
jmp 0x14003d0e7
mov r14d, r15d
mov dword [rbp + 0x50], r15d
test esi, esi
jle 0x14003d124
mov rdi, qword [rbp - 0x30]
mov rax, qword [rbp - 0x10]
jmp 0x14003cf10
mov ecx, 0x80070057
call fcn.140011b60
int3
mov ecx, 0x80070057
call fcn.140011b60
int3
mov ecx, 0x80070057
call fcn.140011b60
int3
mov ecx, 0x80070057
call fcn.140011b60
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003d139
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14003d152
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret