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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x1020411c
lea edi, [ebp - 0x50]
push 0xc
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x102040e8
lea edi, [ebp - 0xe8]
and byte [ebp - 0x250], 0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x24f]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 0x14], 0x10
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x250]
push eax
call fcn.100021c4
lea eax, [ebp - 0x250]
push eax
call fcn.10002250
add esp, 0xc
and dword [ebp - 0xc], 0
lea eax, [ebp + 8]
push 1
pop esi
push eax
lea eax, [ebp - 0x50]
push eax
push 0x80000001
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100012ec
mov ebx, 0x102040e4
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x1000121e
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x354]
push 0x102040dc
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x354]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100011eb
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x64
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x102040d0
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x100011eb
lea eax, [ebp - 0xb4]
push eax
call fcn.10002250
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.10002174
add esp, 0xc
test eax, eax
je 0x100011eb
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
push dword [ebp - 4]
lea eax, [ebp - 0x28]
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push 0
push eax
push dword [ebp + 8]
jmp 0x10001159
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 1
jbe 0x100012ec
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0x64
push ebx
push eax
call esi
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100012e3
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 8]
push eax
mov esi, 0x102040cc
push ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100012e3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100012e3
lea eax, [ebp - 0xb4]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xb4]
push eax
push 1
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call esi
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x14c]
push eax
push 1
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret