Function at 0x140008ee8
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0xd8
lea rbp, [rsp + 0x40]
mov rax, qword [0x1400580e8]
xor rax, rbp
mov qword [rbp + 0x88], rax
mov r15, r9
mov rax, r8
mov qword [rbp + 0x10], rax
mov r13, rdx
mov rdi, rcx
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], r9
mov r14, qword [rbp + 0xf0]
mov qword [rbp + 0x40], r14
mov dword [rbp + 0x48], 0x4752434d
mov dword [rbp + 0x4c], 1
and dword [rbp + 0x50], 0
and dword [rbp + 0x54], 0
and dword [rbp + 0x58], 0
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 0x5c]
call fcn.14001d380
test r14, r14
jne 0x140008f71
lea eax, [r14 + 1]
jmp 0x140009315
mov eax, dword [rdi]
test eax, eax
jne 0x140009315
mov rcx, r13
call fcn.14001f234
lea rcx, [rax*4 + 3]
mov qword [rbp], rcx
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140008fa2
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001b440
sub rsp, rax
lea rsi, [rsp + 0x40]
mov qword [rbp + 0x18], rsi
jmp 0x140008fe7
test rsi, rsi
jne 0x140008ff6
mov eax, 0x3e9
jmp 0x140009315
mov byte [rsi], 0x5f
and dword [rbp + 8], 0
lea rdx, [rsi + 1]
mov qword [rbp], rdx
lea eax, [rcx - 1]
lea rcx, [rbp + 8]
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
or r9d, 0xffffffff
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x140009040
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140009315
cmp dword [rbp + 8], 0
je 0x140009050
mov eax, 0x574
jmp 0x140009315
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x48]
mov rdx, rsi
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x140009092
and dword [rbp + 0x58], eax
mov dword [rbp + 0x54], 1
test r15, r15
jne 0x14000908d
mov esi, 0x1400
mov dword [rbp + 0x50], esi
jmp 0x140009095
mov esi, dword [r14]
jmp 0x140009088
mov esi, dword [rbp + 0x50]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x1400090a3
mov eax, dword [rbp + 0x54]
mov dword [rcx], eax
test r15, r15
jne 0x1400090c1
cmp dword [rbp + 0x54], 1
jne 0x1400090b9
lea eax, [rsi + rsi]
mov dword [r14], eax
jmp 0x140009313
mov dword [r14], esi
jmp 0x140009313
cmp dword [r14], esi
jae 0x1400090d0
mov eax, 8
jmp 0x140009315
cmp dword [rbp + 0x58], 0
je 0x140009209
cmp dword [rbp + 0x54], 1
jne 0x1400091bd
cmp esi, dword [rdi + 0x20]
jbe 0x14000910d
mov rcx, qword [rdi + 0x18]
call fcn.14001f6dc
mov ecx, esi
call fcn.14001f8cc
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140009107
and dword [rdi + 0x20], eax
jmp 0x1400090c6
mov dword [rdi + 0x20], esi
mov esi, dword [rbp + 0x50]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, qword [rdi + 0x18]
mov rdx, qword [rbp]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x140009035
mov rdx, qword [rdi + 0x18]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov r8d, dword [rbp + 0x50]
call fcn.140008d14
test eax, eax
jne 0x140009315
movsxd rax, dword [r14]
shr rax, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
or r9d, 0xffffffff
mov r8, qword [rdi + 0x18]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jg 0x1400091b6
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
or r9d, 0xffffffff
mov r8, qword [rdi + 0x18]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add eax, eax
mov dword [r14], eax
mov eax, 0xea
jmp 0x140009315
add eax, eax
jmp 0x1400090b1
mov dword [r14], esi
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
mov rdx, qword [rbp]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x140009035
mov qword [rsp + 0x30], r14
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
mov r8d, dword [rbp + 0x50]
mov rdx, r15
call fcn.140008d14
jmp 0x140009315
mov eax, dword [rbp + 0x54]
sub eax, 1
je 0x14000927a
mov dword [r14], esi
mov rdx, qword [rbp]
mov rcx, qword [rdi + 8]
cmp eax, 3
mov rax, qword [rdi + 0x10]
je 0x140009243
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
jne 0x140009313
jmp 0x140009035
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x14
lea r9, [rbp + 0x70]
lea r8, [0x1400489c6]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140009035
lea rcx, [rbp + 0x70]
call fcn.14002052c
mov dword [r15], eax
jmp 0x140009313
cmp dword [r14], 2
jb 0x1400090c6
movsxd rsi, dword [r14]
shr rsi, 1
mov dword [rbp + 0x50], esi
cmp esi, dword [rdi + 0x20]
jbe 0x1400092b9
mov rcx, qword [rdi + 0x18]
call fcn.14001f6dc
mov ecx, esi
call fcn.14001f8cc
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400092b3
and dword [rdi + 0x20], eax
jmp 0x140008fec
mov dword [rdi + 0x20], esi
mov esi, dword [rbp + 0x50]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, qword [rdi + 0x18]
lea r8, [0x1400489c6]
mov rdx, qword [rbp]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x140009035
movsxd rax, dword [r14]
shr rax, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
or r9d, 0xffffffff
mov r8, qword [rdi + 0x18]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x140009035
xor eax, eax
mov rcx, qword [rbp + 0x88]
xor rcx, rbp
call fcn.14001a5c0
lea rsp, [rbp + 0x98]
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret