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

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x20], rcx
lea rsi, [0x00470b32]
xor r13, r13
mov rax, qword [0x0048a470]
mov dword [rax], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call fcn.00429e60
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call fcn.0042a010
mov rdi, rax
cmp word [rdi], 0x3a
jne 0x470843
mov eax, dword [rbp + 0x2c]
cmp eax, 2
jle 0x470843
mov word [rdi], 0
sub rdi, 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.00471580
mov r14d, eax
cmp r14d, 0xffffffff
je 0x47078c
mov ecx, r14d
call fcn.0042e9e0
test eax, eax
jne 0x47081c
mov ecx, r14d
call fcn.0042eac0
test eax, eax
jne 0x47081c
add rdi, 2
mov word [rdi], 0x3a
mov rax, qword [0x0048a5e8]
cmp dword [rax], 4
jne 0x4707e4
mov rax, qword [0x0048a648]
cmp dword [rax], 0
jne 0x4707d5
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x38], 0xa
lea rcx, [0x00470b48]
mov edx, 1
lea r8, [rbp + 0x30]
xor r9, r9
call fcn.00471010
mov rax, qword [0x0048a3b8]
mov dword [rax], 1
jmp 0x47080c
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x38], 0xa
lea rcx, [0x00470b48]
mov edx, 1
lea r8, [rbp + 0x30]
xor r9, r9
call fcn.00471010
cmp r14d, 0xffffffff
je 0x47083c
mov ecx, r14d
call fcn.004716b0
jmp 0x47083c
mov ecx, r14d
call fcn.0042e9e0
test eax, eax
jne 0x470834
mov ecx, r14d
call fcn.0042eac0
test eax, eax
je 0x47083c
mov ecx, r14d
call fcn.004716b0
mov ecx, ebx
call sub.kernel32.dll_SetErrorMode
mov ecx, 0x250
call fcn.0046fb60
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x28], rax
movzx r14, word [rdi]
cmp r14w, 0x5c
jne 0x47086a
mov r13d, 1
jmp 0x4708d4
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
mov dx, 0x5c
call fcn.00429df0
mov rdi, rax
test rdi, rdi
jne 0x4708a3
mov rax, qword [rbp + 0x20]
mov rdi, qword [rax]
mov rcx, rdi
call fcn.00429e60
cmp eax, 2
jl 0x4708a7
cmp word [rdi + 2], 0x3a
jne 0x4708a7
add rdi, 4
jmp 0x4708a7
add rdi, 2
mov rcx, rdi
lea rdx, [0x00470b8e]
call fcn.0041dbe0
test eax, eax
je 0x4708cd
mov rcx, rdi
lea rdx, [0x00470b92]
call fcn.0041dbe0
test eax, eax
jne 0x4708d4
mov r13d, 1
test r13d, r13d
jne 0x4709f1
mov rax, qword [0x0048a5e8]
cmp dword [rax], 4
jne 0x4709ad
mov rax, qword [0x0048a590]
cmp dword [rax], 1
jne 0x47094a
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47091b
mov rax, qword [0x0048a470]
mov dword [rax], 0
jmp 0x470929
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x0048a470]
mov dword [rcx], eax
cmp ebx, 0xffffffff
je 0x4709f1
test ebx, 0x10
je 0x4709f1
mov r13d, 1
jmp 0x4709f1
mov rax, qword [0x0048a608]
cmp dword [rax], 1
jne 0x4709f1
mov rax, qword [0x0048a608]
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 0x470989
mov rax, qword [0x0048a470]
mov dword [rax], 0
jmp 0x470997
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x0048a470]
mov dword [rcx], eax
cmp ebx, 0xffffffff
je 0x4709f1
test ebx, 0x10
je 0x4709f1
mov r13d, 1
jmp 0x4709f1
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4709cf
mov rax, qword [0x0048a470]
mov dword [rax], 0
jmp 0x4709dd
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [0x0048a470]
mov dword [rcx], eax
cmp ebx, 0xffffffff
je 0x4709f1
test ebx, 0x10
je 0x4709f1
mov r13d, 1
test r13d, r13d
je 0x470a50
cmp r14w, 0x5c
jne 0x470a04
lea rsi, [0x00470b34]
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
call fcn.004706a0
test al, al
jne 0x470a42
mov ecx, dword [rbp + 0x2c]
add ecx, 5
add ecx, ecx
call fcn.0046fb60
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.00429e80
mov rcx, qword [rbp + 0x20]
mov qword [rcx], rax
mov rcx, qword [rcx]
mov rdx, rsi
call fcn.00429ea0
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x28]
mov dword [rax], 0x10
mov eax, 1
mov dword [rbp + 0x2c], eax
xor rdi, rdi
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
jmp 0x470a89
cmp word [rax], 0x5c
je 0x470a79
cmp word [rax], 0x3a
jne 0x470a7c
mov ecx, dword [rbp + 0x2c]
cmp ecx, 2
jne 0x470a7c
mov rdi, rax
add rax, 2
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
cmp word [rax], 0
jne 0x470a65
mov rax, qword [rbp + 0x20]
mov qword [rax + 0x10], rdi
test rdi, rdi
je 0x470aba
cmp word [rdi], 0
je 0x470ab0
lea rax, [rdi + 2]
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x18], rax
jmp 0x470ac9
mov rax, qword [rbp + 0x20]
mov qword [rax + 0x18], rdi
jmp 0x470ac9
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx]
mov qword [rcx + 0x18], rax
mov rdi, qword [rcx + 0x18]
mov rcx, rdi
mov dx, 0x2a
call fcn.00429dc0
test rax, rax
jne 0x470aeb
mov rcx, rdi
mov dx, 0x3f
call fcn.00429dc0
test rax, rax
je 0x470b00
mov rax, qword [rbp + 0x20]
or dword [rax + 0x30], 8
mov rax, qword [0x0048a098]
mov dword [rax], 1
mov rcx, rdi
mov dx, 0x2e
call fcn.00429dc0
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x20], rax
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret