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

Disassembly:
push 0x24c
mov eax, 0x1011b823
call fcn.101134c8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x244], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x224], esi
call fcn.10080ca6
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push dword [ebp - 0x244]
mov dword [ebp - 4], ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call edi
cmp eax, esi
je 0x1008816f
mov eax, 0x80000002
cmp dword [ebp - 0x220], eax
jne 0x100880d7
lea ecx, [ebp - 0x218]
push ecx
push ebx
push esi
push dword [0x1015cc3c]
push eax
call edi
test eax, eax
je 0x1008801a
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x23c]
push eax
call fcn.1008103f
jmp 0x10088227
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x228]
push eax
push esi
push dword [0x1015cc38]
push dword [ebp - 0x218]
call edi
test eax, eax
jne 0x10088215
push dword [ebp - 0x21c]
call fcn.100be39c
pop ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x228]
push eax
push esi
push dword [0x1015cc38]
push dword [ebp - 0x218]
call edi
push 0xffffffffffffffff
push dword [ebp - 0x240]
lea ecx, [ebp - 0x254]
call fcn.10080f51
push dword [ebp - 0x240]
mov byte [ebp - 4], 2
call fcn.100be39c
push esi
push dword [ebp - 0x250]
call sub.MSVCR100.dll_strtod
fld qword [0x1012b7d8]
fcomp st(1)
add esp, 0xc
fnstsw ax
test ah, 0x41
jnp 0x10088248
fldz
fcompp
fnstsw ax
test ah, 1
je 0x1008824a
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], bl
call fcn.10080ce2
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp - 0x244]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10088215
lea edi, [ebp - 0x254]
call fcn.10087b24
push dword [eax + 8]
lea ecx, [ebp - 0x23c]
push dword [eax + 4]
mov byte [ebp - 4], 3
call fcn.100be39c
mov ecx, edi
mov byte [ebp - 4], bl
call fcn.10080ce2
push 0xff
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x23c]
call fcn.100be39c
mov eax, dword [ebp - 0x234]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
push dword [ebp - 0x22c]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
push esi
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x22c]
push dword [ebp - 0x218]
call edi
cmp eax, esi
jne 0x10088209
push dword [ebp - 0x21c]
call fcn.100be39c
pop ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x228]
push eax
push esi
push dword [ebp - 0x22c]
push dword [ebp - 0x218]
call edi
push 0xffffffffffffffff
push dword [ebp - 0x220]
lea ecx, [ebp - 0x254]
call fcn.10080f51
push dword [eax + 8]
lea ecx, [ebp - 0x23c]
push dword [eax + 4]
mov byte [ebp - 4], 4
call fcn.100be39c
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], bl
call fcn.10080ce2
push dword [ebp - 0x220]
call fcn.100be39c
pop ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x23c]
push eax
call fcn.1008103f
mov dword [ebp - 0x224], ebx
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.10080ce2
mov eax, dword [ebp - 0x214]
call fcn.1011354b
ret
fstp st(0)
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x23c]
push eax
call fcn.1008103f
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x224], ebx
mov byte [ebp - 4], bl
call fcn.10080ce2
jmp 0x1008822d