Function at 0x10008f50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x840]
sub esp, 0x840
push 0xffffffffffffffff
push 0x100370a0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x83c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x848]
mov edi, dword [ebp + 0x84c]
mov ecx, dword [ebp + 0x854]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x850]
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
jb 0x10008fcc
mov eax, dword [eax + 4]
jmp 0x10008fcf
add eax, 4
push eax
push str.CopyRegKey_Path:_s_..
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x30]
push 0
push edx
lea eax, [ebp + 0x42c]
push eax
push ebx
push ecx
mov dword [ebp - 0x24], 0x410
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1000907b
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
inc dword [ebp - 0x28]
push edx
lea eax, [ebp + 0x1c]
push eax
push ecx
push 0
lea edx, [ebp + 0x42c]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x10009075
call fcn.1001af90
movzx edx, byte [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
push edx
push edx
mov edx, dword [ebp - 0x34]
push ecx
push edx
lea ecx, [ebp + 0x42c]
push ecx
push str.CopyRegKey_RegSetValueEx_name:_s_type:_d_len:_d_value:_02x__02x_...
mov ecx, eax
call fcn.1001b4f0
add esp, 0x18
push 0x10049464
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x3c], esi
call fcn.10028c35
inc ebx
jmp 0x10008fe7
xor eax, eax
push 0x206
push eax
lea ecx, [ebp + 0x636]
push ecx
mov dword [ebp - 0x20], 0
mov word [ebp + 0x634], ax
call fcn.100285e0
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
push 0x104
lea edx, [ebp + 0x634]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10009344
mov ecx, dword [ebp - 0x38]
mov ebx, 0x1003f0d0
lea esi, [ebp - 0x70]
call fcn.100130b0
lea ebx, [ebp + 0x634]
mov ecx, eax
lea esi, [ebp]
mov byte [ebp - 4], 1
call fcn.100130b0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x58], 8
jb 0x100090fc
mov edx, dword [ebp - 0x6c]
push edx
call fcn.100269ba
add esp, 4
xor edi, edi
xor eax, eax
inc dword [ebp - 0x2c]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x6c], ax
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jae 0x100091ae
lea edx, [edi*8]
sub edx, edi
cmp dword [esi + edx*4 + 0x18], 8
lea esi, [esi + edx*4]
jb 0x1000914b
mov edx, dword [esi + 4]
jmp 0x1000914e
lea edx, [esi + 4]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10009153
sub eax, ebx
sar eax, 1
mov ebx, eax
push edx
lea eax, [ebp]
call fcn.10003e30
test eax, eax
jle 0x100091a8
mov ebx, 8
cmp dword [esi + 0x18], ebx
jb 0x10009180
mov esi, dword [esi + 4]
jmp 0x10009183
add esi, 4
mov edi, dword [ebp + 4]
cmp dword [ebp + 0x18], ebx
jae 0x1000918e
lea edi, [ebp + 4]
call fcn.1001af90
push esi
push edi
push str.FilterOut.path_:_s_filter_out_with:_s
mov ecx, eax
call fcn.1001b3f0
add esp, 0xc
xor edi, edi
jmp 0x100091bb
inc edi
jmp 0x10009111
xor eax, eax
xor edi, edi
cmp eax, edi
je 0x100091e8
mov ebx, 8
inc dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp dword [ebp + 0x18], ebx
jb 0x100091d3
mov eax, dword [ebp + 4]
push eax
call fcn.100269ba
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], cx
jmp 0x100090a0
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
push edx
push 0xf013f
push edi
lea eax, [ebp + 0x634]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
je 0x10009236
call fcn.1001af90
lea edx, [ebp + 0x634]
push edx
push esi
push str.CopyRegKey_open_subkey_rlt:_08x_subkey:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], esi
call fcn.10028c35
mov eax, dword [ebp - 0x4c]
push edi
lea ecx, [ebp - 0x18]
push ecx
push edi
push 0xf013f
push edi
push edi
push edi
lea edx, [ebp + 0x634]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, edi
je 0x10009288
call fcn.1001af90
lea ecx, [ebp + 0x634]
push ecx
push esi
push str.CopyRegKey_create_dest_subkey_rlt:_08x_subkey:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], esi
call fcn.10028c35
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
push ebx
lea eax, [ebp]
push eax
push ecx
push edx
call fcn.10008f50
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x100092d3
call fcn.1001af90
lea ecx, [ebp + 0x634]
push ecx
push esi
push str.CopyRegKey_fopy_subkey_rlt:_08x_subkey:_s
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
push 0x10049464
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], esi
call fcn.10028c35
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp - 0x18]
push ecx
mov dword [ebp - 0x14], edi
call esi
inc dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp dword [ebp + 0x18], 8
mov dword [ebp - 0x18], edi
jb 0x10009304
mov edx, dword [ebp + 4]
push edx
call fcn.100269ba
add esp, 4
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], ax
jmp 0x100090a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
xor esi, esi
cmp eax, esi
je 0x1000935e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x1000936f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x18], 8
jb 0x1000937d
mov eax, dword [eax + 4]
jmp 0x10009380
add eax, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
push edx
push ecx
push esi
push eax
push str.CopyRegKey_Path:_s_Rlt:_08x_SubKeyCount:_d_SubValueCount:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0x14
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x83c]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x840
mov esp, ebp
pop ebp
ret