Function at 0x1400038c0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbx, rdx
call fcn.140009adc
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140003908
mov ecx, 0x80004005
call fcn.140004af0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x80], rdi
or r15, 0xffffffffffffffff
test rbx, rbx
je 0x140003962
test rbx, 0xffffffffffff0000
jne 0x140003953
movzx ebx, bx
mov ecx, ebx
call fcn.1400094ec
test rax, rax
je 0x140003980
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140004550
jmp 0x140003978
mov rax, r15
inc rax
cmp word [rbx + rax*2], 0
jne 0x140003956
jmp 0x140003965
mov eax, r12d
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140004870
mov rdi, qword [rsp + 0x80]
call fcn.140009adc
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400039a0
mov ecx, 0x80004005
call fcn.140004af0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
lea rdx, [0x140216d20]
test rdx, 0xffffffffffff0000
jne 0x1400039e3
movzx esi, dx
mov ecx, esi
call fcn.1400094ec
test rax, rax
je 0x1400039f5
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140004550
jmp 0x1400039f0
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.140004870
mov rbx, qword [rsp + 0x70]
mov esi, 1
lea rax, [rdi - 0x10]
mov qword [rsp + 0x20], rax
test esi, esi
js 0x140003a2e
cmp esi, dword [rax]
jg 0x140003a2e
movsxd rax, esi
lea rcx, [rdi + rax*2]
lea rdx, [0x140216a8c]
call fcn.14018df20
mov rsi, rax
test rax, rax
je 0x140003a2e
sub rsi, rdi
sar rsi, 1
jmp 0x140003a31
mov esi, r15d
inc esi
mov r8d, esi
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x80]
call fcn.140003ed0
nop
mov r13, qword [rax]
lea rcx, [r13 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x140003b6b
cmp dword [rdi + 0x10], 0
jl 0x140003a98
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140003a98
call fcn.140004a20
mov rbx, rax
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140003a8a
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x70], rax
jmp 0x140003b6b
movsxd rbp, dword [r13 - 0x10]
test ebp, ebp
jne 0x140003aee
mov r14, qword [rdi]
cmp dword [rdi + 8], ebp
je 0x140003b6b
cmp dword [rdi + 0x10], ebp
jge 0x140003ac7
cmp dword [rbx - 0xc], ebp
jl 0x140003bc7
mov dword [rbx - 0x10], r12d
mov word [rbx], r12w
jmp 0x140003b6b
lock add dword [rdi + 0x10], 0xffffffff
jg 0x140003ada
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 [rsp + 0x70], rax
jmp 0x140003b6b
test r13, r13
je 0x140003be8
mov r12d, dword [rbx - 0x10]
mov r14, r13
sub r14, rbx
sar r14, 1
test ebp, ebp
js 0x140003bdd
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, ebp
or eax, ecx
jge 0x140003b2e
mov edx, ebp
lea rcx, [rsp + 0x70]
call fcn.140004810
mov rbx, qword [rsp + 0x70]
lea rdi, [rbp*2]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, rdi
add rdx, rdx
cmp r14, r12
ja 0x140003b53
lea r8, [rbx + r14*2]
call fcn.14018d548
jmp 0x140003b5b
mov r8, r13
call fcn.14018d4c0
cmp ebp, dword [rbx - 0xc]
jg 0x140003bd2
mov dword [rbx - 0x10], ebp
xor r12d, r12d
mov word [rdi + rbx], r12w
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140003b87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x70]
movzx eax, word [rbx]
cmp ax, word [0x140216d20]
jne 0x140003b9d
mov eax, r12d
jmp 0x140003ba2
sbb eax, eax
or eax, 1
test eax, eax
je 0x140003bb1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
jle 0x140003bf3
mov rdi, qword [rsp + 0x80]
mov rax, qword [rsp + 0x20]
jmp 0x140003a03
mov ecx, 0x80070057
call fcn.140004af0
int3
mov ecx, 0x80070057
call fcn.140004af0
int3
mov ecx, 0x80070057
call fcn.140004af0
int3
mov ecx, 0x80070057
call fcn.140004af0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140003c08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140003c24
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret