Function at 0x140019c10
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 [0x14009f650]
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 0x140019c79
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140019cae
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.1400060f0
jmp 0x140019e95
mov dword [rsp + 0x30], 1
mov eax, 2
mov r13d, 0x104
mul r13
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.1400205b4
mov rbp, rax
mov qword [rsp + 0x80], 7
mov qword [rsp + 0x78], r12
mov word [rsp + 0x68], r12w
cmp qword [r14 + 0x18], 8
jb 0x140019cfd
mov rax, qword [r14]
jmp 0x140019d00
mov rax, r14
mov r15, qword [rsp + 0x58]
cmp qword [r15 + 0x18], 8
jb 0x140019d11
mov r8, qword [r15]
jmp 0x140019d14
mov r8, r15
cmp qword [rbx + 0x18], 8
jb 0x140019d20
mov rdx, qword [rbx]
jmp 0x140019d23
mov rdx, rbx
cmp qword [rdi + 0x18], 8
jb 0x140019d2f
mov rcx, qword [rdi]
jmp 0x140019d32
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 0x140019d51
mov r12, qword [r14]
jmp 0x140019d54
mov r12, r14
mov rcx, r15
call fcn.140006240
mov rdi, rax
mov rcx, rbx
call fcn.140006240
mov rbx, rax
mov rcx, qword [rsp + 0x38]
call fcn.140006240
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 0x140019e07
mov rcx, r15
call fcn.140006240
mov rcx, rbp
sub rax, rbp
nop word [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + rax]
sub r8d, edx
jne 0x140019dc5
add rcx, 2
test edx, edx
jne 0x140019db0
test r8d, r8d
je 0x140019e07
mov rcx, rbp
call fcn.1400403d8
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.1400205b4
mov rbp, rax
mov rbx, qword [rsp + 0x40]
jmp 0x140019d45
cmp word [rbp], 0
jne 0x140019e14
xor ebx, ebx
mov esi, ebx
jmp 0x140019e21
inc rsi
cmp word [rbp + rsi*2], 0
jne 0x140019e14
xor ebx, ebx
mov r8, rsi
mov rdx, rbp
lea rcx, [rsp + 0x68]
call fcn.1400060f0
mov rcx, rbp
call fcn.1400403d8
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 0x140019e80
mov r8, qword [rsp + 0x78]
inc r8
je 0x140019e88
add r8, r8
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.14003f480
mov rcx, qword [rsp + 0x80]
jmp 0x140019e88
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.14003f3e0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret