Function at 0x140022d20
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 [0x1401c6780]
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], 7
jbe 0x140022d5f
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
je 0x140022d71
xor al, al
jmp 0x140022fd2
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140022d7e
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, [0x140190230]
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x41], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x140022db0
lea rcx, [rbp - 0x51]
call fcn.14000c0c0
nop
mov dword [rbp - 0x59], 9
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.140024af0
nop
mov dword [rbp - 0x59], recvfrom
cmp qword [rax + 0x18], 7
jbe 0x140022ded
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140022e00
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.14000c0c0
nop
lea rcx, [rbp - 0x31]
call fcn.140009810
nop
lea rcx, [rbp - 0x51]
call fcn.140009810
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140022e3a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022fb7
test al, 0x10
je 0x140022fb7
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140022710
test eax, eax
jne 0x140022e68
mov bl, 1
jmp 0x140022fc6
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140022ea6
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022ea2
test al, 0x10
je 0x140022ea2
mov bl, 1
jmp 0x140022eda
xor bl, bl
jmp 0x140022eda
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 7
cmova rdx, qword [rbp - 0x11]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete bl
test eax, eax
jne 0x140022eda
xor r8d, r8d
mov edx, dword [0x1401c73d0]
lea rcx, [rbp - 0x11]
call fcn.140026260
lea rax, [rbp - 0x11]
mov qword [rbp + 0x17], rax
mov dword [rbp + 0x1f], 1
lea rax, [0x140022d00]
mov qword [rbp + 0xf], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x37], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xf]
call fcn.140023ba0
mov byte [rbp + 0x37], 1
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.140026f60
nop
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140022f44
cmp byte [rbp + 0x37], 0
je 0x140022f40
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x14000aed8.0]
mov qword [rbp + 0x27], r14
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x140022f69
cmp byte [rbp + 0x37], 0
je 0x140022f65
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x14000aed8.0]
mov qword [rbp + 0x2f], r14
mov byte [rbp + 0x37], 0
cmp dword [rbp + 0x1f], 3
jne 0x140022fa9
mov rdi, qword [rbp + 0xf]
test rdi, rdi
je 0x140022fa9
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140022f9c
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14000aed8.0]
mov qword [rdi + 0x38], r14
mov edx, 0x40
mov rcx, rdi
call fcn.1401219f0
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x1f], r14d
jmp 0x140022fc6
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140026b30
movzx ebx, al
lea rcx, [rbp - 0x11]
call fcn.140009810
movzx eax, bl
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1401219d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret