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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r12, rcx
mov dword [rcx + 0x20], 1
mov r8d, gethostbyname
lea rdx, [rsp + 0x50]
lea rcx, [fcn.18000d280]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
xor r14d, r14d
mov ecx, r14d
test rax, rax
cmovne rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18006567f
mov r8d, 0x104
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [r14 + 0x5c]
lea rcx, [rbp - 0x80]
call fcn.18007b694
mov r11, rax
test rax, rax
je 0x18006567f
add r11, 2
lea rcx, str.config.ini
sub r11, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rcx + r11], ax
add rcx, 2
test ax, ax
jne 0x180065470
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18006567f
shr eax, 4
not eax
and eax, 1
je 0x18006567f
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], r14
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.1800651a0
test eax, eax
jne 0x180065515
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x18006567f
mov rbx, rsi
mov rdi, qword [rsp + 0x28]
cmp rsi, rdi
je 0x180065508
nop
cmp qword [rbx + 0x18], 8
jb 0x1800654ef
mov rcx, qword [rbx]
call fcn.18007a7a4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
add rbx, 0x28
cmp rbx, rdi
jne 0x1800654e0
mov rcx, rsi
call fcn.18007a7a4
jmp 0x18006567f
mov ebx, 1
mov r13, qword [rsp + 0x28]
mov rcx, r13
mov rsi, qword [rsp + 0x20]
sub rcx, rsi
movabs rax, 0x6666666666666667
imul rcx
mov rdi, rdx
sar rdi, 4
mov rax, rdi
shr rax, 0x3f
add rdi, rax
cmp rdi, rbx
jbe 0x18006563b
cmp ebx, 1
jne 0x1800655f5
cmp rdi, 1
jbe 0x180065621
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.1800049e0
lea edx, [rbx + 0x3c]
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.180013be0
cmp eax, 0xffffffff
jne 0x1800655bb
mov dword [r12 + 0x20], ebx
cmp qword [rsp + 0x68], 8
jb 0x180065612
mov rcx, qword [rsp + 0x50]
call fcn.18007a7a4
jmp 0x180065612
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x68]
cmp r8, 8
cmovae r9, rcx
inc eax
movsxd rdx, eax
mov eax, r14d
cmp word [r9 + rdx*2], 0x66
setne al
mov dword [r12 + 0x20], eax
cmp r8, 8
jb 0x180065612
call fcn.18007a7a4
jmp 0x180065612
cmp ebx, 2
jle 0x180065612
movsxd rax, ebx
cmp rdi, rax
jbe 0x18006562e
lea rax, [rax + rax*4]
lea rdx, [rsi + rax*8]
mov rcx, r12
call fcn.18000b980
inc ebx
movsxd rax, ebx
cmp rax, rdi
jae 0x18006563b
jmp 0x180065551
lea rcx, str.invalid_vector_T__subscript
call fcn.18007837c
int3
lea rcx, str.invalid_vector_T__subscript
call fcn.18007837c
nop
test rsi, rsi
je 0x180065678
mov rbx, rsi
cmp rsi, r13
je 0x180065670
cmp qword [rbx + 0x18], 8
jb 0x180065657
mov rcx, qword [rbx]
call fcn.18007a7a4
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
add rbx, 0x28
cmp rbx, r13
jne 0x180065648
mov rcx, rsi
call fcn.18007a7a4
mov eax, 1
jmp 0x180065681
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret