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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1803e3008]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r12d, r12d
mov r15, r8
mov qword [rbp - 0x28], r12
mov rbx, rdx
mov dword [rbp - 0x30], r12d
mov esi, r12d
mov r13d, r12d
test rdx, rdx
je 0x1802033c1
test r8, r8
je 0x1802033c1
lea r8d, [r12 + 4]
mov rcx, rbx
lea rdx, [0x18038a588]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x1802033c1
mov r9, r15
lea rdx, [0x1803721d4]
mov r8, rbx
lea rcx, str._winapi.CreateJunction
call sym.python310.dll_PySys_Audit
test eax, eax
jns 0x1802031c3
xor eax, eax
jmp 0x1802033d5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x28]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18020337e
lea r8, [rbp - 0x1c]
xor ecx, ecx
lea rdx, str.SeRestorePrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x18020337e
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x20]
mov eax, 2
mov qword [rsp + 0x28], r12
xor edx, edx
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x14], eax
mov qword [rsp + 0x20], r12
lea r9d, [rax + 0xe]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x18020337e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18020337e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov r14d, eax
test ax, ax
je 0x18020337e
mov eax, 0xffff
mov ecx, 1
add r14w, ax
lea edi, [r14 + 7]
shl di, 2
movzx edx, di
call sym.python310.dll_PyMem_RawCalloc
mov rsi, rax
test rax, rax
je 0x18020337e
mov word [rax + 8], r12w
lea ecx, [rdi - 8]
mov word [rax + 4], cx
lea r12, [rsi + 0x18]
movzx r8d, r14w
mov dword [rax], 0xa0000003
add r8w, r8w
xor r9d, r9d
mov word [rax + 0xe], r8w
mov rcx, rbx
lea edx, [r8 + 8]
mov r8, r12
mov word [rax + 0xa], dx
add dx, 2
mov word [rax + 0xc], dx
movsd xmm0, qword [0x18038a588]
movsd qword [rax + 0x10], xmm0
movzx eax, word [0x18038a590]
movzx edx, r14w
inc edx
mov word [rsi + 0x18], ax
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor edx, edx
test eax, eax
je 0x18020337e
movzx ecx, r14w
movzx eax, word [r12]
mov word [r12 + rcx*2 + 2], ax
lea r12, [r12 + 2]
test ax, ax
jne 0x1802032fa
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r12d, r12d
test eax, eax
je 0x18020337e
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x18020337e
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
mov r8, rsi
mov dword [rsp + 0x28], r12d
mov edx, 0x900a4
movzx r9d, di
mov rcx, r13
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x28]
mov dword [rbp - 0x30], eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1803fc5d0]
mov rdx, rsi
call qword [case.0x18005bf29.3]
mov edx, dword [rbp - 0x30]
test edx, edx
jne 0x1802033c6
inc qword [sym.python310.dll__Py_NoneStruct]
lea rax, sym.python310.dll__Py_NoneStruct
jmp 0x1802033d5
mov edx, 0x57
mov rcx, qword [sym.python310.dll_PyExc_OSError]
xor r8d, r8d
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilename
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180181080
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret