Function at 0x140013b60
Capabilities:
Create directory
Move file

Disassembly:
mov rax, rsp
mov byte [rax + 0x18], r8b
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x98
mov qword [rax - 0x38], 0xfffffffffffffffe
movzx ebp, r8b
mov rsi, rcx
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
or edi, 0xffffffff
test bpl, bpl
je 0x140013d1a
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140013be7
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013e2c
mov edx, 0x5c
mov rcx, qword [rsi]
call fcn.14002bdd0
test rax, rax
jne 0x140013bfd
mov eax, edi
jmp 0x140013bff
sub eax, dword [rsi]
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140007c80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140013c6c
cmp dword [rbx + 0x10], 0
jl 0x140013c5d
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140013c5d
call fcn.140001870
mov rbp, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140013c4a
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x50], rax
movzx ebp, byte [rsp + 0xd0]
jmp 0x140013c6c
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002fd0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013c85
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
mov rbx, qword [rsp + 0x50]
test rdx, rdx
je 0x140013ca9
cmp dword [rbx - 0x10], 0
jl 0x140013ca9
mov rcx, rbx
call fcn.140029e60
test rax, rax
je 0x140013ca9
cmp eax, ebx
jns 0x140013cd1
lea rcx, [rbx - 0x18]
call fcn.140001870
add rax, 0x18
mov qword [rsp + 0x68], rax
movzx r8d, bpl
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x68]
call fcn.140013b60
xor ecx, ecx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013e2c
mov rcx, qword [rsi]
mov rdx, rcx
call fcn.14002ce1c
test eax, eax
jns 0x140013e2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140013e2c
mov edx, 0x5c
mov rcx, qword [rsi]
call fcn.14002bdd0
test rax, rax
jne 0x140013d55
mov eax, edi
jmp 0x140013d57
sub eax, dword [rsi]
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140007c80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140013dbc
cmp dword [rbx + 0x10], 0
jl 0x140013dad
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140013dad
call fcn.140001870
mov rbp, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x140013da2
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140013dbc
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140002fd0
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013dd5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
mov rbx, qword [rsp + 0x50]
test rdx, rdx
je 0x140013df9
cmp dword [rbx - 0x10], 0
jl 0x140013df9
mov rcx, rbx
call fcn.140029e60
test rax, rax
je 0x140013df9
cmp eax, ebx
jns 0x140013e20
lea rcx, [rbx - 0x18]
call fcn.140001870
add rax, 0x18
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x78]
call fcn.140013b60
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013e41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140013e58
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x98
pop rdi
pop rsi
pop rbp
pop rbx
ret