Function at 0x140044820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rax, [rsp + 0x70]
mov esi, dword [rax]
mov rdi, rcx
test edx, 0xffff7fff
jne 0x140044940
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400448bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x140044899
mov rcx, rdi
call fcn.140044c30
mov rbx, rax
test rax, rax
jne 0x14004488b
call fcn.14002f76c
mov dword [rax], 0x16
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400448bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044ec0
mov rcx, rbx
call fcn.1400250bc
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x140044933
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000001
xor edx, edx
mov dword [rsp + 0x20], 3
test rbx, rbx
je 0x1400448f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1400448f9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rbx
mov rdi, rax
call fcn.1400250bc
cmp rdi, 0xffffffffffffffff
jne 0x140044921
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044ec0
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
mov rcx, rdi
call fcn.14005b91c
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
jne 0x1400449e7
mov edx, dword [rsp + 0x68]
mov r8d, esi
mov rcx, rdi
call fcn.1400657ac
mov ebx, eax
test eax, eax
jns 0x140044a7b
call fcn.14002f76c
cmp dword [rax], 0xd
jne 0x1400449c5
test dword [rsp + 0x68], 0x100
je 0x1400449c5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140044991
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044ec0
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x1400449ad
call fcn.14002f76c
mov dword [rax], 0x15
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.14002f76c
mov dword [rax], 0xd
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.14002f76c
cmp dword [rax], 2
jne 0x140044a7b
mov rcx, rdi
call fcn.140044c30
mov rbx, rax
test rax, rax
je 0x140044873
mov edx, dword [rsp + 0x68]
mov r8d, esi
mov rcx, rbx
call fcn.140065880
mov edi, eax
test eax, eax
jns 0x140044a69
call fcn.14002f76c
cmp dword [rax], 0xd
jne 0x140044a69
test dword [rsp + 0x68], 0x100
je 0x140044a69
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140044a3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044ec0
mov rcx, rbx
call fcn.1400250bc
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x140044a5e
call fcn.14002f76c
mov rcx, rbx
mov dword [rax], 0x15
call fcn.1400250bc
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.14002f76c
mov dword [rax], 0xd
mov rcx, rbx
call fcn.1400250bc
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret