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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xbc0]
sub rsp, 0xcc0
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rbp + 0xbb0], rax
mov r15, rdx
xor esi, esi
lea rax, [0x140053fb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 5
mov qword [rsp + 0x70], rcx
movabs rax, 0xb000000000000000
mov qword [rsp + 0x60], rax
lea rax, str.Config.txt
mov qword [rsp + 0x78], rax
movabs rax, 0xb000000000000008
mov qword [rsp + 0x68], rax
mov r14d, 2
mov qword [rbp - 0x80], r14
lea rax, [rsp + 0x60]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140008700
nop
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400057af
test al, 0x10
jne 0x1400057af
mov qword [rbp - 0x80], rsi
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rdx, qword [rbp - 0x70]
lea r8, [0x140053e78]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov r8, qword [rbp - 0x80]
test r8, r8
jne 0x140005642
lea eax, [rsi + 1]
jmp 0x1400057b4
mov edx, 0x400
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x14000579c
nop dword [rax]
mov dword [rsp + 0x28], 0x400
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
lea r8, [rbp + 0x3b0]
lea rdx, str._s___s
lea rcx, [rbp + 0x7b0]
call fcn.1400030e0
cmp eax, 2
jne 0x1400057b7
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
lea rax, [rbp + 0x3b0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400056c0
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x30]
call fcn.140007610
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140007210
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rbp - 0x50]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140005700
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x140005737
mov rdi, rcx
cmp rax, 0xf
jbe 0x14000571e
mov rdi, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
lea rdx, [rbp - 0x50]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x140005744
lea r9, [rbp - 0x50]
mov rdx, rbx
call fcn.140002d50
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000577d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005778
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400057a8
call fcn.140033aa0
mov r8, qword [rbp - 0x80]
mov edx, 0x400
lea rcx, [rbp + 0x7b0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140005660
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400057ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, 3
mov r14d, eax
mov esi, r14d
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x1400057fd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057f8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400057f8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140033aa0
mov eax, esi
mov rcx, qword [rbp + 0xbb0]
xor rcx, rsp
call fcn.140033a80
lea r11, [rsp + 0xcc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret