Function at 0x140014ea0
Capabilities:
Read .ini file

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13, rcx
mov qword [r11 - 0x78], rcx
mov r15, rdx
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax]
xor r12d, r12d
mov ebx, r12d
cmp dword [rax + 0x18], 4
je 0x14001518d
lea rsi, [rax + 0x10]
mov r14d, dword [rsp + 0xc0]
nop dword [rax + rax]
movsxd rdi, dword [rsi + 0xc]
add rdi, r15
cmp r14d, 2
je 0x140015167
mov edx, dword [rsi + 0x10]
mov ecx, dword [rsi + 8]
test ecx, ecx
je 0x1400150cf
dec ecx
je 0x140015012
dec ecx
je 0x140014f79
dec ecx
jne 0x140015128
mov rax, qword [r13]
mov r9d, edx
mov r8, rdi
mov rcx, qword [rsi - 8]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsi]
cmp r14d, 1
jne 0x140014f6c
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
mov ebx, eax
jmp 0x140015111
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
mov ebx, eax
jmp 0x140015111
mov word [rsp + 0x40], r12w
xor eax, eax
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x4a], rax
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
cmp r14d, 1
jne 0x140014fcb
lea r9d, [rax + 0xa]
lea r8d, [rax + 0xf]
lea rdx, [rsp + 0x40]
mov ecx, dword [rdi]
call fcn.140060d1c
mov r9, qword [r13]
lea r8, [rsp + 0x40]
mov rdx, qword [rsi]
mov rcx, qword [rsi - 8]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, eax
jmp 0x140015111
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsi - 8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, r12d
test eax, eax
setne bl
test ebx, ebx
je 0x14001518d
lea rcx, [rsp + 0x40]
call fcn.14005f4f0
mov dword [rdi], eax
jmp 0x140015111
cmp r14d, 1
jne 0x140015033
mov r9, qword [r13]
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov rcx, qword [rsi - 8]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, eax
jmp 0x140015111
mov ebx, 0x80
nop dword [rax + rax]
add ebx, ebx
mov rbp, qword [r13]
js 0x14001515c
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14001506a
mov edx, ebx
mov rcx, rdi
call fcn.14001e8d0
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebx
mov r9, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rsi - 8]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, eax
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140015095
mov eax, r12d
jmp 0x1400150a6
movsxd rdx, dword [rcx - 0xc]
call fcn.14005e508
test eax, eax
js 0x140015151
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140015151
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r12w
lea eax, [rbx - 1]
cmp ebp, eax
je 0x140015040
test ebp, ebp
jmp 0x14001510b
mov rcx, qword [rsi - 8]
cmp r14d, 1
jne 0x1400150ed
mov r9, qword [r13]
mov r8, rdi
mov rdx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ebx, eax
jmp 0x140015111
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov r9, rdi
xor r8d, r8d
mov rdx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
mov ebx, r12d
setne bl
test ebx, ebx
je 0x14001518d
add rsi, 0x28
cmp dword [rsi + 8], 4
je 0x1400151ad
jmp 0x140014f10
mov rdx, qword [r13]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140015186
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 0x80004001
jmp 0x1400151d9
mov ecx, 0x80070057
call fcn.14001e940
int3
mov ecx, 0x80070057
call fcn.14001e940
nop
mov rdx, qword [r13]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140015186
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 0x80004001
jmp 0x1400151d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400151a0
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x1400151ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, r12d
call fcn.14001aa50
mov ebx, eax
mov rdx, qword [r13]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400151d7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005e0b0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret