Function at 0x100a22b3
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x244
mov eax, 0x10150cd0
call fcn.10147e2c
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x220], esi
call fcn.1009b955
and dword [ebp - 4], 0
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push dword [ebp - 0x234]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100a24bc
mov ecx, 0x80000002
cmp ebx, ecx
jne 0x100a2400
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push dword [0x10191d9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a2553
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [0x10191da0]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a2553
push dword [ebp - 0x218]
call fcn.1010ce65
pop ecx
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [0x10191da0]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x244]
call fcn.1009b87a
push esi
mov byte [ebp - 4], 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0
push dword [ebp - 0x240]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fstp qword [ebp - 0x250]
movsd xmm1, qword [ebp - 0x250]
add esp, 0xc
comisd xmm1, xmmword [0x101631d8]
jae 0x100a249e
xorps xmm0, xmm0
comisd xmm0, xmm1
jae 0x100a249e
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0
call fcn.1010ce65
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x214]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push dword [ebp - 0x234]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100a2553
lea eax, [ebp - 0x244]
push eax
call fcn.100a1d60
pop ecx
push dword [eax + 8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push dword [eax + 4]
call fcn.1010ce65
xor ebx, ebx
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], bl
call fcn.1010ce65
push 0xff
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x230]
call fcn.1010ce65
mov eax, dword [ebp - 0x228]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x100a24be
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.1009b803
lea ecx, [ebp - 0x244]
call fcn.1010ce65
jmp 0x100a2561
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
lea eax, [ebp - 0x21c]
push eax
push ebx
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a2547
push dword [ebp - 0x218]
call fcn.1010ce65
pop ecx
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x244]
call fcn.1009b87a
push dword [eax + 8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
push dword [eax + 4]
call fcn.1010ce65
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], bl
call fcn.1010ce65
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
pop ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.1009b803
lea ecx, [ebp - 0x230]
call fcn.1010ce65
mov eax, edi
call fcn.10147dd6
ret