Function at 0x4b0de0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push r15
mov eax, 0x2048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.0056fc10
sub rsp, rax
mov r13, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov qword [rsp + 0x20a0], r8
mov esi, edx
mov ebx, edx
xor edx, edx
mov qword [rsp + 0x20a8], r9
and esi, 0x500
mov rbp, rcx
mov r12d, r8d
mov rax, qword [r13]
mov qword [rsp + 0x2038], rax
xor eax, eax
cmp esi, 0x500
lea rax, [rsp + 0x20a0]
setne dl
mov qword [rsp + 0x20], rax
call fcn.004aed50
test eax, eax
je 0x4b11a0
test bl, 8
jne 0x4b0f60
mov r14, qword [sym.imp.msvcrt.dll__wopen]
test rbp, rbp
je 0x4b0ea0
mov r14, qword [sym.imp.msvcrt.dll__wopen]
mov ecx, 0xa
lea rdi, [0x00590cd1]
mov rsi, rbp
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
jne 0x4b0ea0
lea r15, [rsp + 0x30]
lea rdx, [0x00590cdc]
mov rcx, r15
call sub.msvcrt.dll_wcscpy
jmp 0x4b0ee5
lea r15, [rsp + 0x30]
mov rdx, rbp
mov r9d, 0xffffffff
mov r8d, 0x1000
mov rcx, r15
mov esi, dword [0x00605de8]
call fcn.004ad7d0
mov edx, eax
test eax, eax
js 0x4b1090
mov r9d, esi
mov r8d, 0x104
mov rcx, r15
call fcn.004af110
test eax, eax
js 0x4b10a2
mov r8d, r12d
mov edx, ebx
mov rcx, r15
call r14
mov esi, eax
test eax, eax
js 0x4b0f30
test bh, 1
jne 0x4b0f88
mov rax, qword [rsp + 0x2038]
xor rax, qword [r13]
jne 0x4b11c5
mov eax, esi
add rsp, 0x2048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test bl, 3
je 0x4b0ef6
mov rdi, qword [sym.imp.msvcrt.dll__errno]
call rdi
cmp dword [rax], 0xd
jne 0x4b0ef6
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b0ef6
test al, 0x10
je 0x4b0ef6
call rdi
mov dword [rax], 0x15
jmp 0x4b0ef6
movsx eax, byte [rbp]
cmp eax, 0x2f
je 0x4b1020
cmp eax, 0x5c
je 0x4b1020
lea r14, [0x004ac370]
jmp 0x4b0e6f
mov eax, dword [0x005765dc]
mov qword [rsp + 0x28], rbp
test eax, eax
je 0x4b0eff
lea rcx, [rsp + 0x28]
call fcn.004b55a0
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx]
test al, al
je 0x4b0eff
mov rdi, rcx
jmp 0x4b0fde
mov rdx, rcx
cmp r8d, 0x5c
je 0x4b0fe6
lea rcx, [rdx + 1]
mov qword [rsp + 0x28], rcx
movzx eax, byte [rdx + 1]
test al, al
je 0x4b10b0
movsx r8d, al
cmp al, 0x2f
jne 0x4b0fc0
add rcx, 1
nop word [rax + rax]
mov qword [rsp + 0x28], rcx
movsx r8d, byte [rcx]
mov rdx, rcx
lea rcx, [rcx + 1]
cmp r8b, 0x2f
je 0x4b0ff0
cmp r8d, 0x5c
je 0x4b0ff0
test r8b, r8b
je 0x4b10b0
mov rdi, rdx
jmp 0x4b0fc9
movsx eax, byte [rbp + 1]
cmp eax, 0x2f
je 0x4b1032
cmp eax, 0x5c
jne 0x4b0f76
cmp byte [rbp + 2], 0x2e
jne 0x4b0f76
movsx eax, byte [rbp + 3]
cmp eax, 0x2f
je 0x4b104e
cmp eax, 0x5c
jne 0x4b0f76
lea rcx, [rbp + 4]
mov r8d, 4
lea rdx, str.pipe
call qword [sym.imp.msvcrt.dll__strnicmp_2]
test eax, eax
jne 0x4b0f76
movsx eax, byte [rbp + 8]
cmp eax, 0x2f
je 0x4b107f
cmp eax, 0x5c
jne 0x4b0f76
cmp byte [rbp + 9], 0
je 0x4b0f76
jmp 0x4b0e68
mov rbx, qword [sym.imp.msvcrt.dll__errno]
call rbx
cmp dword [rax], 0x22
je 0x4b1180
mov esi, 0xffffffff
jmp 0x4b0eff
mov eax, dword [0x005765dc]
cmp eax, 1
je 0x4b1190
cmp eax, 2
jne 0x4b1130
mov r8d, 4
mov rdx, rdi
lea rcx, str..git
call qword [sym.imp.msvcrt.dll__strnicmp_2]
test eax, eax
jne 0x4b0eff
movzx eax, byte [rdi + 4]
test al, al
je 0x4b1100
movsx edx, al
cmp al, 0x2f
je 0x4b1100
cmp edx, 0x5c
jne 0x4b0eff
nop word [rax + rax]
test esi, esi
js 0x4b1150
mov edx, 1
mov rcx, r15
call fcn.004ac300
test eax, eax
je 0x4b0eff
mov rdx, rbp
lea rcx, str.could_not_mark__s_as_hidden.
call fcn.00494a30
jmp 0x4b0eff
mov r8d, 0x25d
lea rdx, str.compat_mingw.c
lea rcx, str.hide_dotfiles__HIDE_DOTFILES_DOTGITONLY
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x4b10c4
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0xd
jne 0x4b0eff
and bh, 0xfe
mov r8d, r12d
mov rcx, r15
mov edx, ebx
call r14
mov esi, eax
test eax, eax
js 0x4b0eff
jmp 0x4b1104
call rbx
mov dword [rax], 0x26
jmp 0x4b10a2
cmp byte [rdi], 0x2e
je 0x4b1100
jmp 0x4b0eff
cmp esi, 0x500
mov eax, 2
mov ebx, 0x16
mov esi, 0xffffffff
cmovne ebx, eax
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], ebx
jmp 0x4b0eff
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax + rax]