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

Disassembly:
push 0x248
mov eax, 0x1014c66c
call fcn.1014377c
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x230]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x220], eax
call fcn.10097c22
and dword [ebp - 4], 0
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1009e3b9
mov ecx, 0x80000002
cmp esi, ecx
jne 0x1009e2f7
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push dword [0x1018ed9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009e450
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [0x1018eda0]
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x1009e450
push dword [ebp - 0x218]
call fcn.1013d095
pop ecx
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [0x1018eda0]
push dword [ebp - 0x214]
call ebx
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x248]
call fcn.10097b6a
push esi
mov byte [ebp - 4], 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
push 0
push dword [ebp - 0x244]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtod]
fstp qword [ebp - 0x254]
movsd xmm1, qword [ebp - 0x254]
add esp, 0xc
comisd xmm1, xmmword [0x1015f7a8]
jae 0x1009e39b
xorps xmm0, xmm0
comisd xmm0, xmm1
jae 0x1009e39b
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.1013d095
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x214]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push dword [ebp - 0x238]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1009e450
lea eax, [ebp - 0x248]
push eax
call fcn.1009dc82
pop ecx
push dword [eax + 8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
push dword [eax + 4]
call fcn.1013d095
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.1013d095
push 0xff
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x230]
call fcn.1013d095
mov eax, dword [ebp - 0x228]
mov esi, dword [ebp - 0x220]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1009e3bf
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.10097af3
lea ecx, [ebp - 0x248]
call fcn.1013d095
jmp 0x1009e45e
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push esi
push dword [ebp - 0x214]
call ebx
test eax, eax
jne 0x1009e444
push dword [ebp - 0x218]
call fcn.1013d095
pop ecx
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call ebx
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x248]
call fcn.10097b6a
push dword [eax + 8]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
push dword [eax + 4]
call fcn.1013d095
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0
call fcn.1013d095
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.10097af3
lea ecx, [ebp - 0x230]
call fcn.1013d095
mov eax, edi
call fcn.10143726
ret