Function at 0x140020de0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1400a8650]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, r9
mov qword [rsp + 0x40], rbx
mov rdi, r8
mov qword [rsp + 0x38], r8
mov r15, rdx
mov qword [rsp + 0x48], rdx
mov r14, rcx
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x58], rax
xor r12d, r12d
mov dword [rsp + 0x50], r12d
cmp qword [rcx + 0x18], 8
jb 0x140020e49
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140020e7e
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], r12
mov word [r15], r12w
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, r15
call fcn.14000cea0
jmp 0x140021065
mov dword [rsp + 0x30], 1
mov eax, 2
mov r13d, 0x104
mul r13
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.140027878
mov rbp, rax
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
cmp qword [r14 + 0x18], 8
jb 0x140020ecd
mov rax, qword [r14]
jmp 0x140020ed0
mov rax, r14
mov r15, qword [rsp + 0x58]
cmp qword [r15 + 0x18], 8
jb 0x140020ee1
mov r8, qword [r15]
jmp 0x140020ee4
mov r8, r15
cmp qword [rbx + 0x18], 8
jb 0x140020ef0
mov rdx, qword [rbx]
jmp 0x140020ef3
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x140020eff
mov rcx, qword [rdi]
jmp 0x140020f02
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp qword [r14 + 0x18], 8
jb 0x140020f21
mov r12, qword [r14]
jmp 0x140020f24
mov r12, r14
mov rcx, r15
call fcn.14000cff0
mov rdi, rax
mov rcx, rbx
call fcn.14000cff0
mov rbx, rax
mov rcx, qword [rsp + 0x38]
call fcn.14000cff0
mov rcx, rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r13d
mov r9, rbp
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r13 - 1]
cmp eax, ecx
jb 0x140020fd7
mov rcx, r15
call fcn.14000cff0
mov rcx, rbp
sub rax, rbp
nop word [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + rax]
sub r8d, edx
jne 0x140020f95
add rcx, 2
test edx, edx
jne 0x140020f80
test r8d, r8d
je 0x140020fd7
mov rcx, rbp
call fcn.140047698
mov ebx, dword [rsp + 0x30]
inc ebx
mov dword [rsp + 0x30], ebx
imul r13d, ebx, 0x104
mov ecx, r13d
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.140027878
mov rbp, rax
mov rbx, qword [rsp + 0x40]
jmp 0x140020f15
cmp word [rbp], 0
jne 0x140020fe4
xor ebx, ebx
mov esi, ebx
jmp 0x140020ff1
inc rsi
cmp word [rbp + rsi*2], 0
jne 0x140020fe4
xor ebx, ebx
mov r8, rsi
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.14000cea0
mov rcx, rbp
call fcn.140047698
mov r15, qword [rsp + 0x48]
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], rbx
mov word [r15], bx
mov rcx, qword [rsp + 0x80]
cmp rcx, 8
jae 0x140021050
mov r8, qword [rsp + 0x78]
inc r8
je 0x140021058
add r8, r8
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140046740
mov rcx, qword [rsp + 0x80]
jmp 0x140021058
mov rax, qword [rsp + 0x68]
mov qword [r15], rax
mov rax, qword [rsp + 0x78]
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], rcx
mov rax, r15
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400466a0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret