Function at 0x140064490
Capabilities:
Read .ini file

Disassembly:
push rbx
push rdi
push r12
push r13
sub rsp, 0x58
mov r13, rdx
lea r8, [rsp + 0x30]
mov rdi, rcx
xorps xmm0, xmm0
mov ebx, 0x100
lea rcx, [rsp + 0x30]
xor r12d, r12d
mov edx, ebx
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
call fcn.140036e80
mov rax, qword [rdi + 8]
lea r8, [0x1402a214c]
mov r9, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
cmp eax, 0xfe
jb 0x140064544
nop word [rax + rax]
lea eax, [rbx + rbx]
mov edx, eax
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.140036e80
mov rax, qword [rdi + 8]
lea r8, [0x1402a214c]
mov r9, qword [rsp + 0x30]
xor edx, edx
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, eax
lea eax, [rbx - 2]
cmp ecx, eax
jae 0x140064500
mov qword [rsp + 0x88], rbp
lea edx, [rcx + 1]
mov qword [rsp + 0x90], rsi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x98], r14
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x50], r15
call fcn.140036e80
mov rdi, qword [rsp + 0x30]
cmp word [rdi], r12w
je 0x140064765
call fcn.1400045e0
test rax, rax
je 0x1400647cb
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
test rdi, 0xffffffffffff0000
jne 0x1400646bf
xor edx, edx
movzx r14d, di
lea rcx, [0x1416b2080]
call fcn.140071a50
mov rsi, rax
mov ebp, 1
test rax, rax
je 0x1400646eb
mov r15d, r14d
shr r15, 4
nop dword [rax]
xor r9d, r9d
lea r8, [r15 + 1]
mov rcx, rsi
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x14006460c
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
call fcn.1400041a0
test rax, rax
jne 0x140064629
mov edx, ebp
lea rcx, [0x1416b2080]
call fcn.140071a50
inc ebp
mov rsi, rax
test rax, rax
jne 0x1400645e0
jmp 0x1400646eb
test rsi, rsi
je 0x1400646eb
mov r8d, 6
lea rdx, [r15 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400646eb
mov r8d, r14d
mov rdx, rax
mov rcx, rsi
call fcn.1400041a0
mov r14, rax
test rax, rax
je 0x1400646eb
movzx esi, word [rax]
mov edx, 1
mov ecx, dword [rbx - 0xc]
movzx eax, si
sub edx, dword [rbx - 8]
sub ecx, esi
or edx, ecx
jge 0x14006469a
mov edx, esi
lea rcx, [rsp + 0x80]
call fcn.140004670
movzx eax, word [r14]
mov rbx, qword [rsp + 0x80]
movzx r9d, ax
lea r8, [r14 + 2]
mov edx, esi
mov rcx, rbx
call fcn.1400042a0
cmp esi, dword [rbx - 0xc]
jg 0x1400647dc
mov dword [rbx - 0x10], esi
mov word [rbx + rsi*2], r12w
jmp 0x1400646eb
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x1400646c6
mov r8d, eax
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140004720
mov rbx, qword [rsp + 0x80]
mov rsi, qword [r13 + 8]
cmp qword [r13 + 0x10], rsi
je 0x14006470c
lea rcx, [rbx - 0x18]
call fcn.140014ee0
add rax, 0x18
mov qword [rsi], rax
add qword [r13 + 8], 8
jmp 0x14006471f
lea r8, [rsp + 0x80]
mov rdx, rsi
mov rcx, r13
call fcn.140062d50
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006473b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, 0xffffffffffffffff
cmp word [rdi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x140064742
lea rdi, [rdi + rax*2]
add rdi, 2
cmp word [rdi], r12w
jne 0x140064582
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x1400647a1
mov rdx, qword [rsp + 0x40]
mov rax, rdi
sub rdx, rdi
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x140064799
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400647d6
mov rcx, rdi
call fcn.14001dee0
mov r15, qword [rsp + 0x50]
mov al, 1
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rbx
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3
call fcn.1401f802c
int3
mov ecx, 0x80070057
call fcn.140002ad0
int3