Function at 0x140029570
Capabilities:
Check if file exists
Inspect section memory permissions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, r9d
mov ebp, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [rcx]
call qword [rax + reloc.WLDAP32.dll_Ordinal_200]
mov rax, qword [rbx]
cmp qword [rax + 0x10], 0
jne 0x1400295b5
cmp qword [rax + 0x18], 0
je 0x1400295b5
mov rcx, rbx
call sub.TD_Root_23.8_16.dll_protected:_void___cdecl_OdString::syncUnicode_void_const___ptr64
mov rax, qword [rbx]
cmp dword [rax + 4], 0
jne 0x1400295d2
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400297bf
cmp dword [rcx - 0xc], 0
je 0x1400297bf
mov edx, r15d
sar edx, 0x1f
mov eax, edx
and eax, 0x10000000
and edx, 0x80000000
mov ecx, r15d
mov r8d, eax
bts r8d, 7
and ecx, 0x40000000
cmove r8d, eax
mov r12d, edx
bts r12d, 0x1e
bt r15d, 0x1e
cmovae r12d, edx
mov eax, r15d
mov edx, r8d
bts edx, 8
and eax, 0x20000000
cmove edx, r8d
mov ecx, r15d
and ecx, 0x10000000
mov eax, ecx
neg eax
sbb r8d, r8d
and r8d, 4
mov r13d, edx
bts r13d, 0x1a
test ecx, ecx
cmove r13d, edx
mov edi, r8d
cmp ebp, 0x30
je 0x14002965a
cmp ebp, 0x10
je 0x14002965d
or edi, 1
lea eax, [rbp - 0x10]
test eax, 0xffffffef
je 0x14002965d
or edi, 2
xor esi, esi
mov ecx, dword [rsp + 0xb0]
sub ecx, 1
je 0x140029699
sub ecx, 1
je 0x140029692
sub ecx, 1
je 0x14002968b
sub ecx, 1
je 0x140029684
cmp ecx, 1
jne 0x14002969e
lea esi, [rcx + 4]
jmp 0x14002969e
mov esi, 4
jmp 0x14002969e
mov esi, 3
jmp 0x14002969e
mov esi, 2
jmp 0x14002969e
mov esi, 1
mov rdx, rbx
lea rcx, [rsp + 0x90]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdString::constructor_class_OdString_const____ptr64____ptr64
nop
mov rcx, qword [rbx]
cmp qword [rcx + 0x10], 0
jne 0x1400296cb
cmp qword [rcx + 0x18], 0
je 0x1400296cb
mov rcx, rbx
call sub.TD_Root_23.8_16.dll_protected:_void___cdecl_OdString::syncUnicode_void_const___ptr64
mov rcx, qword [rbx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8d, edi
mov edx, r12d
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [r14 + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x14002971d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14002975b
lea rcx, [rsp + 0x40]
cmp eax, 5
je 0x140029823
cmp eax, 0x20
jne 0x140029785
jmp 0x1400297e6
lea rcx, [r14 + 0x20]
lea rdx, [rsp + 0x90]
call sub.TD_Root_23.8_16.dll_public:_class_OdString____ptr64___cdecl_OdString::operator_class_OdString_const____ptr64____ptr64
mov dword [r14 + 0x28], ebp
mov dword [r14 + 0x30], r15d
lea rcx, [rsp + 0x90]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdString::destructor_void____ptr64
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x98]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileNotFound::constructor_class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c14a8]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edx, eax
call fcn.14002a0b0
nop
mov r9, rax
lea r8, [rsp + 0x90]
mov edx, Ordinal_50
lea rcx, [rsp + 0x98]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov edx, 0x33
lea rcx, [rsp + 0x98]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError::constructor_enum_OdResult____ptr64
lea rdx, [0x1400c1418]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov edx, reloc.WLDAP32.dll_Ordinal_32
call fcn.14002a0b0
nop
mov r9, rax
lea r8, [rsp + 0x90]
mov edx, 0x150
lea rcx, [rsp + 0x98]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov edx, 5
call fcn.14002a0b0
nop
mov r9, rax
lea r8, [rsp + 0x90]
mov edx, gethostname
lea rcx, [rsp + 0x98]
call sub.TD_Root_23.8_16.dll_public:_void___cdecl_OdError_FileException::constructor_enum_OdResult__class_OdString_const____ptr64__class_OdString_const____ptr64____ptr64
lea rdx, [0x1400c1538]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
int3