Function at 0x1002e32
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ec
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
je 0x1002e9a
mov edi, 0x10014ac
push edi
push dword [ebp + 0x10]
call fcn.010042b0
push edi
push ebx
mov dword [ebp + 0x10], eax
call fcn.010042b0
add esp, 0x10
push 0x10014a0
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1002e95
lea eax, [ebp - 4]
push eax
push edi
call fcn.01002bb7
cmp dword [ebp - 4], ebx
je 0x1002e9a
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], ebx
jne 0x1002ea1
mov dword [ebp - 4], 0x80000001
mov edi, 0x10011dc
push edi
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10013dc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call edi
test eax, eax
jne 0x1002f02
push ebx
push ebx
push ebx
push ebx
push 0x1001494
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x1002fd4
lea eax, [ebp - 0x304]
push eax
mov dword [ebp + 0x10], 0x1f4
call fcn.01002a4d
push eax
lea eax, [ebp + 0x10]
call fcn.01002933
test eax, eax
jne 0x1002f48
mov byte [ebp - 0x304], bl
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x304]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002fc8
lea eax, [ebp + 0x10]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x110]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x1002fcb
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 1
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6ec]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x6ec]
push eax
push 4
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002fcb
xor esi, esi
inc esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
jne 0x1002fde
call fcn.01002ae8
call fcn.01002da4
test eax, eax
jne 0x10030ef
cmp esi, ebx
je 0x1002ff8
cmp dword [ebp - 0xc], ebx
je 0x1003096
push dword [ebp - 4]
call fcn.01002630
push dword [ebp - 4]
call fcn.01002735
push 0x1001488
call fcn.01003122
mov esi, eax
cmp esi, ebx
je 0x1003057
push dword [ebp - 4]
call fcn.010032b9
test eax, eax
je 0x1003057
push esi
push dword [ebp - 4]
call fcn.01003f46
sub esp, 0x10
mov edi, esp
mov esi, 0x10011bc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
mov esi, 0x10011cc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
call fcn.01002825
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push 0x10011dc
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1003096
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push ebx
push 0x1001494
push dword [ebp - 8]
mov dword [ebp + 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push 0x100147c
push 0x80000003
call edi
test eax, eax
jne 0x10030e8
push dword [ebp - 8]
call fcn.010032b9
test eax, eax
je 0x10030df
push 1
sub esp, 0x10
mov edi, esp
mov esi, 0x10011bc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
mov esi, 0x10011cc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010027d1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.010028e6
jmp 0x1003107
push 0x1001488
call fcn.01003122
push eax
push dword [ebp - 4]
call fcn.0100394c
call fcn.01002899
cmp dword [ebp - 4], 0x80000001
je 0x1003119
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10