Function at 0x140022730
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x59], r14d
cmp qword [rcx + 0x18], 8
jb 0x14002276f
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140022781
xor al, al
jmp 0x1400229b5
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002278e
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x14015c818]
test rax, rax
cmovne rdx, rax
mov qword [rbp - 0x51], r14
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x41], xmm0
mov word [rbp - 0x51], r14w
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], r14w
jne 0x1400227c2
lea rcx, [rbp - 0x51]
call fcn.140008ee0
nop
mov dword [rbp - 0x59], 9
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.140024500
nop
mov dword [rbp - 0x59], ntohl
cmp qword [rax + 0x18], 8
jb 0x1400227ff
mov rax, qword [rax]
mov qword [rbp - 0x11], r14
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], r14w
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140022815
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140008ee0
nop
lea rcx, [rbp - 0x31]
call fcn.140008e70
nop
lea rcx, [rbp - 0x51]
call fcn.140008e70
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14002284f
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022999
test al, 0x10
je 0x140022999
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.1400220d0
test eax, eax
jne 0x14002287e
mov sil, 1
jmp 0x1400229a8
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400228be
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400228b9
test al, 0x10
je 0x1400228b9
mov sil, 1
jmp 0x1400228f3
xor sil, sil
jmp 0x1400228f3
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete sil
test eax, eax
jne 0x1400228f3
xor r8d, r8d
mov edx, dword [0x14018acc0]
lea rcx, [rbp - 0x11]
call fcn.140025970
lea rax, [rbp - 0x11]
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], 1
lea rax, [0x140022710]
mov qword [rbp + 0xf], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x37], 0
xor edx, edx
xor ecx, ecx
call fcn.140023490
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.140023490
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.140023570
mov byte [rbp + 0x37], 1
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.1400266a0
nop
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x14002296c
cmp byte [rbp + 0x37], 0
je 0x140022968
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp + 0x27], r14
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x14002298a
cmp byte [rbp + 0x37], 0
je 0x140022986
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp + 0x2f], r14
mov byte [rbp + 0x37], 0
lea rcx, [rbp + 0xf]
call fcn.14001c750
jmp 0x1400229a8
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140026230
movzx esi, al
lea rcx, [rbp - 0x11]
call fcn.140008e70
movzx eax, sil
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400f9560
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret