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

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x48], 0
nop
lea rax, [0x0042f2da]
mov qword [rbp + 0x28], rax
xor r13, r13
mov rax, qword [0x00449798]
mov dword [rax], 0
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
test rax, rax
je 0x42ee07
mov rcx, rax
call fcn.00409fc0
mov edi, eax
jmp 0x42ee0a
xor rdi, rdi
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call fcn.00422d20
mov rsi, rax
cmp word [rsi], 0x3a
jne 0x42ef4b
cmp edi, 2
jle 0x42ef4b
mov word [rsi], 0
sub rsi, 2
xor rcx, rcx
call sub.kernel32.dll_SetErrorMode
mov ebx, eax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
mov edx, 0x8000
call fcn.00435f60
mov r14d, eax
cmp r14d, 0xffffffff
je 0x42ee7a
mov ecx, r14d
call fcn.0042d1d0
test eax, eax
jne 0x42ef24
mov ecx, r14d
call fcn.0042d2b0
test eax, eax
jne 0x42ef24
add rsi, 2
mov word [rsi], 0x3a
mov rax, qword [0x00449910]
cmp dword [rax], 4
jne 0x42eedf
mov rax, qword [0x00449978]
cmp dword [rax], 0
jne 0x42eed0
lea rcx, [rbp + 0x48]
mov rdx, qword [0x00449958]
call fcn.0040d960
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x40], 0xa
mov rcx, qword [rbp + 0x48]
mov edx, 1
lea r8, [rbp + 0x38]
xor r9, r9
call fcn.004359f0
mov rax, qword [0x004496e0]
mov dword [rax], 1
jmp 0x42ef14
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00449958]
call fcn.0040d960
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rbp + 0x38], rax
mov byte [rbp + 0x40], 0xa
mov rcx, qword [rbp + 0x30]
mov edx, 1
lea r8, [rbp + 0x38]
xor r9, r9
call fcn.004359f0
cmp r14d, 0xffffffff
je 0x42ef44
mov ecx, r14d
call fcn.00436090
jmp 0x42ef44
mov ecx, r14d
call fcn.0042d1d0
test eax, eax
jne 0x42ef3c
mov ecx, r14d
call fcn.0042d2b0
test eax, eax
je 0x42ef44
mov ecx, r14d
call fcn.00436090
mov ecx, ebx
call sub.kernel32.dll_SetErrorMode
mov ecx, 0x250
call fcn.00423880
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x28], rax
movzx r14, word [rsi]
cmp r14w, 0x5c
jne 0x42ef72
mov r13d, 1
jmp 0x42efe9
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
mov dx, 0x5c
call fcn.00422ae0
mov rsi, rax
test rsi, rsi
jne 0x42efb8
mov rax, qword [rbp + 0x20]
mov rsi, qword [rax]
test rsi, rsi
je 0x42efa3
mov rax, rsi
mov rcx, rax
call fcn.00409fc0
jmp 0x42efa6
xor rax, rax
cmp eax, 2
jl 0x42efbc
cmp word [rsi + 2], 0x3a
jne 0x42efbc
add rsi, 4
jmp 0x42efbc
add rsi, 2
mov rcx, rsi
lea rdx, [0x0042f2e2]
call fcn.0041ad50
test eax, eax
je 0x42efe2
mov rcx, rsi
lea rdx, [0x0042f2e6]
call fcn.0041ad50
test eax, eax
jne 0x42efe9
mov r13d, 1
test r13d, r13d
jne 0x42f106
mov rax, qword [0x00449910]
cmp dword [rax], 4
jne 0x42f0c2
mov rax, qword [0x004498c0]
cmp dword [rax], 1
jne 0x42f05f
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f030
mov rax, qword [0x00449798]
mov dword [rax], 0
jmp 0x42f03e
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x00449798]
mov dword [rcx], eax
cmp ebx, 0xffffffff
je 0x42f106
test ebx, 0x10
je 0x42f106
mov r13d, 1
jmp 0x42f106
mov rax, qword [0x00449938]
cmp dword [rax], 1
jne 0x42f106
mov rax, qword [0x00449938]
mov dword [rax], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f09e
mov rax, qword [0x00449798]
mov dword [rax], 0
jmp 0x42f0ac
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x00449798]
mov dword [rcx], eax
cmp ebx, 0xffffffff
je 0x42f106
test ebx, 0x10
je 0x42f106
mov r13d, 1
jmp 0x42f106
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42f0e4
mov rax, qword [0x00449798]
mov dword [rax], 0
jmp 0x42f0f2
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x00449798]
mov dword [rcx], eax
cmp ebx, 0xffffffff
je 0x42f106
test ebx, 0x10
je 0x42f106
mov r13d, 1
test r13d, r13d
je 0x42f169
cmp r14w, 0x5c
jne 0x42f11d
lea rax, [0x0042f2dc]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call fcn.0042ed60
test al, al
jne 0x42f15b
mov ecx, edi
add ecx, 5
add ecx, ecx
call fcn.00423880
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00422b70
mov rcx, qword [rbp + 0x20]
mov qword [rcx], rax
mov rcx, qword [rcx]
mov rdx, qword [rbp + 0x28]
call fcn.00422b90
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x28]
mov dword [rax], 0x10
mov edi, 1
xor rsi, rsi
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
jmp 0x42f198
cmp r14w, 0x5c
je 0x42f18e
cmp r14w, 0x3a
jne 0x42f191
cmp edi, 2
jne 0x42f191
mov rsi, rax
add rax, 2
add edi, 1
cmp r14w, word [rax]
je 0x42f17b
mov rax, qword [rbp + 0x20]
mov qword [rax + 0x10], rsi
test rsi, rsi
je 0x42f1c9
cmp word [rsi], 0
je 0x42f1bf
lea rax, [rsi + 2]
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x18], rax
jmp 0x42f1d8
mov rax, qword [rbp + 0x20]
mov qword [rax + 0x18], rsi
jmp 0x42f1d8
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
mov qword [rcx + 0x18], rax
mov rsi, qword [rcx + 0x18]
xor rax, rax
test rsi, rsi
je 0x42f1fb
mov rcx, rsi
jmp 0x42f1f4
cmp word [rcx], 0x2a
jne 0x42f1f0
mov rax, rcx
jmp 0x42f1fa
add rcx, 2
cmp word [rcx], 0
jne 0x42f1e5
nop
test rax, rax
je 0x42f204
mov al, 1
jmp 0x42f22d
xor rax, rax
test rsi, rsi
je 0x42f227
mov rcx, rsi
jmp 0x42f220
cmp word [rcx], 0x3f
jne 0x42f21c
mov rax, rcx
jmp 0x42f226
add rcx, 2
cmp word [rcx], 0
jne 0x42f211
nop
test rax, rax
setne al
test al, al
je 0x42f246
mov rax, qword [rbp + 0x20]
or dword [rax + 0x30], 8
mov rax, qword [0x004492e0]
mov dword [rax], 1
xor rax, rax
test rsi, rsi
je 0x42f266
jmp 0x42f25f
cmp word [rsi], 0x2e
jne 0x42f25b
mov rax, rsi
jmp 0x42f265
add rsi, 2
cmp word [rsi], 0
jne 0x42f250
nop
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x20], rax
nop
lea rcx, [rbp + 0x30]
call fcn.004098a0
lea rcx, [rbp + 0x48]
call fcn.004098a0
lea rsp, [rbp + 0x58]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret