Function at 0x100046300
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1000730b0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov rbx, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov ecx, 0x4e20
call fcn.100001f90
mov r13, rax
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x38]
mov r8, r15
mov rdx, r14
mov rcx, rdi
call fcn.100046200
xor edi, edi
mov ebp, edi
mov r12, qword [rsp + 0x40]
lea rsi, [r12 + 8]
cmp r12, rdi
jne 0x10004638c
mov rdx, rdi
jmp 0x1000463af
mov rcx, qword [rsp + 0x48]
sub rcx, r12
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, ebp
cmp rax, rdx
jae 0x100046617
cmp qword [rsi + 0x18], 8
jb 0x1000463c6
mov rdx, qword [rsi]
jmp 0x1000463c9
mov rdx, rsi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x2710
mov r9, r13
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], rdi
mov word [rsp + 0xe0], di
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0xd8]
call fcn.10001b608
nop
mov ecx, 7
mov qword [rsp + 0xd0], rcx
xor eax, eax
mov qword [rsp + 0xc8], rax
mov word [rsp + 0xb8], ax
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xa0], rax
mov word [rsp + 0x90], ax
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rax
mov word [rsp + 0x60], ax
lea r8d, [rcx - 6]
lea rdx, [0x100065414]
lea rcx, [rsp + 0x58]
call fcn.10001b608
nop
lea r9, [rsp + 0x88]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xd8]
call fcn.100045ba0
nop
cmp qword [rsp + 0x78], 8
jb 0x1000464b6
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov ecx, 0x18
call fcn.100001c10
mov rdi, rax
test rax, rax
je 0x1000464dc
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rsp + 0x30], rdi
jmp 0x1000464e3
xor edi, edi
mov qword [rsp + 0x30], rdi
mov eax, dword [rsp + 0x170]
mov dword [rdi], eax
lea rcx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rcx, qword [rsp + 0xb8]
call qword [sym.imp.msvcrt.dll__wcsdup]
mov qword [rdi + 8], rax
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsdup]
mov qword [rdi + 0x10], rax
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x100046541
xor ecx, ecx
jmp 0x10004654c
mov rcx, qword [rbx + 0x10]
sub rcx, rdx
sar rcx, 3
test rdx, rdx
je 0x100046572
mov rax, qword [rbx + 0x18]
sub rax, rdx
sar rax, 3
cmp rcx, rax
jae 0x100046572
mov rax, qword [rbx + 0x10]
lea rcx, [rax + 8]
mov qword [rax], rdi
mov qword [rbx + 0x10], rcx
jmp 0x10004658a
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.100008840
nop
cmp qword [rsp + 0xa8], 8
jb 0x1000465a2
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
mov qword [rsp + 0xa8], 7
xor edi, edi
mov qword [rsp + 0xa0], rdi
mov word [rsp + 0x90], di
cmp qword [rsp + 0xd0], 8
jb 0x1000465d8
mov rcx, qword [rsp + 0xb8]
call sub.msvcrt.dll_free
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], rdi
mov word [rsp + 0xb8], di
cmp qword [rsp + 0xf8], 8
jb 0x10004660c
mov rcx, qword [rsp + 0xe0]
call sub.msvcrt.dll_free
inc ebp
add rsi, 0x28
jmp 0x100046382
mov rcx, r13
call sub.msvcrt.dll_free
nop
lea rcx, [rsp + 0x38]
call fcn.100019f90
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.100001c30
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret