Function at 0x4106f200
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x460
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x41359af8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbp, r8
mov rbx, rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov rax, qword [0x4135c018]
test rax, rax
jne 0x4106f273
mov ecx, 0x2d0
call fcn.41211580
mov qword [rsp + 0x20], rax
test rax, rax
je 0x4106f269
mov rcx, rax
call fcn.410228e0
jmp 0x4106f26c
mov rax, r12
mov qword [0x4135c018], rax
mov rcx, rax
call fcn.4102a7d0
mov r9, rax
xor r8d, r8d
lea rdx, str.UserID
lea rcx, str.Setting
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
test eax, eax
jne 0x4106f2c5
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r12
mov word [rbx + 8], ax
xor r8d, r8d
lea rdx, [0x412a02a8]
mov rcx, rbx
call fcn.41024690
mov rax, rbx
jmp 0x4106f4e1
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
mov word [rsp + 0x240], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x242]
call fcn.412121c0
mov eax, 0x14f8b589
imul esi
sar edx, 0xd
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x186a0
sub esi, edx
mov r9d, esi
mov r8, rbp
lea rdx, str._s_05d
lea rcx, [rsp + 0x240]
call fcn.412122b0
lea edx, [rdi + 5]
mov eax, 0x66666667
imul edx
mov edi, edx
sar edi, 1
mov eax, edi
shr eax, 0x1f
add edi, eax
mov word [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x32]
call fcn.412121c0
mov rcx, r12
nop
nop
movzx eax, word [rsp + rcx + 0x240]
mov word [rsp + rcx + 0x30], ax
add rcx, 2
test ax, ax
jne 0x4106f360
test edi, edi
jle 0x4106f3cb
movsxd rcx, edi
mov rdx, r12
movzx eax, word [rsp + rdx + 0x248]
mov word [rsp + rdx + 0x30], ax
movzx eax, word [rsp + rdx + 0x240]
mov word [rsp + rdx + 0x38], ax
movzx eax, word [rsp + rdx + 0x242]
mov word [rsp + rdx + 0x32], ax
movzx eax, word [rsp + rdx + 0x246]
mov word [rsp + rdx + 0x34], ax
movzx eax, word [rsp + rdx + 0x244]
mov word [rsp + rdx + 0x36], ax
add rdx, 0xa
sub rcx, 1
jne 0x4106f380
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r12
lea rsi, [rbx + 8]
mov word [rsi], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x4106f404
mov rax, qword [rsi]
jmp 0x4106f407
mov rax, rsi
lea rcx, [rsp + 0x30]
cmp rcx, rax
jb 0x4106f458
cmp rdx, 8
jb 0x4106f41c
mov rcx, qword [rsi]
jmp 0x4106f41f
mov rcx, rsi
mov rax, qword [rbx + 0x18]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x30]
cmp rcx, rax
jbe 0x4106f458
cmp rdx, 8
jb 0x4106f43a
mov rsi, qword [rsi]
lea r8, [rsp + 0x30]
sub r8, rsi
sar r8, 1
mov r9, rdi
mov rdx, rbx
mov rcx, rbx
call fcn.41022de0
jmp 0x4106f4de
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
jbe 0x4106f46c
call fcn.4120fbc0
mov rax, qword [rbx + 0x20]
cmp rax, rdi
jae 0x4106f486
mov r8, qword [rbx + 0x18]
mov rdx, rdi
mov rcx, rbx
call fcn.41022ab0
jmp 0x4106f49f
test rdi, rdi
jne 0x4106f49f
mov qword [rbx + 0x18], r12
cmp rax, 8
jb 0x4106f498
mov rsi, qword [rsi]
mov word [rsi], 0
jmp 0x4106f4de
test rdi, rdi
je 0x4106f4de
mov rdx, qword [rbx + 0x20]
cmp rdx, 8
jb 0x4106f4b3
mov rcx, qword [rsi]
jmp 0x4106f4b6
mov rcx, rsi
lea rbp, [rdi + rdi]
add rdx, rdx
mov r9, rbp
lea r8, [rsp + 0x30]
call fcn.412118b0
mov qword [rbx + 0x18], rdi
cmp qword [rbx + 0x20], 8
jb 0x4106f4d8
mov rsi, qword [rsi]
mov word [rsi + rbp], 0
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.41211b80
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret