Function at 0x1400a16f0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x48]
sub rsp, 0x148
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r13, r9
mov r14d, r8d
mov r12, rdx
mov qword [rsp + 0x50], rcx
movzx r15d, byte [rbp + 0xb0]
xor ebx, ebx
mov r8d, ebx
mov dword [rsp + 0x30], ebx
mov dword [r9], r14d
xor sil, sil
lea edi, [rbx + 1]
test r15b, r15b
je 0x1400a1791
lea rcx, [rsp + 0x58]
call fcn.14000c2c0
mov r8d, edi
mov rdx, qword [rax]
mov ecx, ebx
lea r9, [0x1400f51c0]
nop word [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r9 + rcx*2 - 2]
jne 0x1400a1789
cmp rcx, 4
jne 0x1400a1770
mov eax, ebx
jmp 0x1400a178d
sbb eax, eax
or eax, edi
test eax, eax
je 0x1400a1794
xor dil, dil
or ebx, 0xffffffff
test r8b, 1
je 0x1400a17bb
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a17bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
test dil, dil
je 0x1400a1a4e
call fcn.140004650
mov rdx, rax
xor edi, edi
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x1400a17e5
mov ecx, 0x80004005
call fcn.140003970
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov r8d, r14d
lea rdx, [0x1400de2a0]
lea rcx, [rsp + 0x38]
call fcn.140012950
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x40]
call fcn.1400b5f30
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.14000c2c0
nop
mov rax, qword [rax]
movzx eax, word [rax]
cmp ax, word [0x1400dd1f0]
jne 0x1400a183b
mov eax, edi
jmp 0x1400a1840
sbb eax, eax
or eax, 1
test eax, eax
lea rcx, str.Default
mov rdx, r12
cmove rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000c2c0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a1879
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
mov r14, qword [rsp + 0x50]
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14000c2c0
nop
mov rax, qword [rax]
movzx eax, word [rax]
cmp ax, word [0x1400dd1f0]
jne 0x1400a189f
mov eax, edi
jmp 0x1400a18a4
sbb eax, eax
or eax, 1
test eax, eax
mov rdx, r14
lea rax, str.Default
cmove rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000c2c0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a18dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.14009d070
nop
lea r8, str._settings.ini
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14009f7a0
cmp qword [rax + 0x18], 8
jb 0x1400a1907
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x32
lea r9, [rbp - 0x40]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
mov r8, qword [rbp - 0x70]
cmp r8, 8
jb 0x1400a194b
inc r8
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1400a5a00
mov qword [rbp - 0x70], 7
xor eax, eax
mov qword [rbp - 0x78], rax
mov word [rsp + 0x78], ax
mov r8, qword [rbp - 0x50]
cmp r8, 8
jb 0x1400a1978
inc r8
mov rdx, qword [rbp - 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400a5a00
test edi, edi
je 0x1400a19f2
mov rdx, r13
lea rcx, [rbp - 0x40]
call fcn.14009fdb0
test al, al
setne dil
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a19ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a19cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
nop
mov rax, qword [rsp + 0x38]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400a19e9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.imgengine.dll_Ordinal_8 + 8]
movzx eax, dil
jmp 0x1400a1ae0
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a1a11
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a1a30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400a1a53
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.imgengine.dll_Ordinal_8]
jmp 0x1400a1a53
mov r14, qword [rsp + 0x50]
xor r8d, r8d
movzx edx, r15b
mov rcx, r12
call fcn.1400a1ff0
mov rbx, rax
test rax, rax
je 0x1400a1adc
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, sil
test eax, eax
mov eax, 1
cmove esi, eax
mov rcx, qword [0x1401331c8]
cmp rbx, rcx
je 0x1400a1ac6
cmp rbx, qword [0x1401331c0]
je 0x1400a1ac6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1401331c8]
test r15b, r15b
je 0x1400a1adc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [0x1401331c8], 0
movzx eax, sil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400af8c0
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret