Function at 0x1007f6e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2069
mov eax, dword fs:[0]
push eax
sub esp, 0x34c
mov eax, dword [0x100eb6ac]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov dword [ebp - 0x2ac], eax
mov dword [ebp - 0x298], ecx
mov esi, edx
mov dword [ebp - 0x2b0], esi
xor ebx, ebx
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
jb 0x1007f749
mov eax, dword [esi]
jmp 0x1007f74b
mov eax, esi
mov dword [ebp - 0x294], ebx
lea edx, [ebp - 0x294]
push edx
push 0x20219
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1007fa33
mov dword [ebp - 0x2a0], ebx
mov eax, dword [ebp - 0x294]
mov dword [ebp - 0x2a4], eax
mov dword [ebp - 0x2a0], 0x200
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push ebx
lea edx, [ebp - 0x21e]
push edx
call fcn.100a39b0
add esp, 0xc
mov dword [ebp - 0x2a8], 0x104
mov dword [ebp - 0x294], ebx
lea eax, [ebp - 0x2b8]
push eax
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x2a8]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x294]
push eax
mov esi, dword [ebp - 0x2a4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1007fa16
inc dword [ebp - 0x294]
mov dword [ebp - 0x2a8], 0x104
mov edi, 7
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
xor ecx, ecx
mov word [ebp - 0x23c], cx
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1007f820
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x23c]
call fcn.10019760
mov byte [ebp - 4], 1
cmp dword [ebp - 0x22c], ebx
jne 0x1007f882
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x1007f868
mov edx, dword [ebp - 0x23c]
push edx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
xor eax, eax
mov word [ebp - 0x23c], ax
jmp 0x1007f7b8
mov byte [ebp - 4], 2
push ebx
lea ecx, [ebp - 0x23c]
push ecx
mov edx, str..KB
call fcn.10012be0
cmp eax, 0xffffffff
jne 0x1007f905
push ebx
lea edx, [ebp - 0x23c]
push edx
mov edx, str._Office
call fcn.10012be0
cmp eax, 0xffffffff
jne 0x1007f905
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x23c]
mov edi, dword [ebp - 0x2ac]
call fcn.1006fcf0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x1007f8e7
mov eax, dword [ebp - 0x23c]
push eax
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], ebx
xor ecx, ecx
mov word [ebp - 0x23c], cx
jmp 0x1007f7b8
mov byte [ebp - 4], bl
lea esi, [ebp - 0x23c]
call fcn.10012b80
mov byte [ebp - 4], bl
jmp 0x1007f7b8
cmp esi, ebx
je 0x1007fa27
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov esi, dword [ebp - 0x2b0]
cmp byte [ebp + 0xc], bl
je 0x1007fd9d
cmp dword [esi + 0x14], 8
jb 0x1007fa44
mov esi, dword [esi]
mov dword [ebp - 0x294], ebx
mov edi, dword [ebp - 0x29c]
cmp edi, ebx
je 0x1007fab7
cmp dword [edi], ebx
je 0x1007fa9b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x1007fa6e
mov eax, 1
jmp 0x1007fad2
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1007fa67
push ebx
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x294]
push edx
push 0x20119
push ebx
push esi
mov ecx, dword [ebp - 0x298]
push ecx
call eax
jmp 0x1007fad2
cmp dword [edi + 4], ebx
je 0x1007fa67
lea edx, [ebp - 0x294]
push edx
push 0x20119
push ebx
push esi
mov eax, dword [ebp - 0x298]
push eax
jmp 0x1007facc
lea ecx, [ebp - 0x294]
push ecx
push 0x20119
push ebx
push esi
mov edx, dword [ebp - 0x298]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1007fd9d
xor eax, eax
mov ecx, dword [ebp - 0x2a4]
cmp ecx, ebx
je 0x1007faf3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x2a0], 0x100
cmp eax, ebx
jne 0x1007fd9d
mov dword [ebp - 0x2a8], 0x104
mov dword [ebp - 0x298], ebx
lea edx, [ebp - 0x2b8]
push edx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x298]
push edx
mov esi, dword [ebp - 0x2a4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1007fd86
inc dword [ebp - 0x298]
mov dword [ebp - 0x2a8], 0x104
mov edi, 7
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1007fb90
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x23c]
call fcn.10019760
mov byte [ebp - 4], 8
cmp dword [ebp - 0x22c], ebx
jne 0x1007fbf2
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x1007fbd8
mov ecx, dword [ebp - 0x23c]
push ecx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
xor edx, edx
mov word [ebp - 0x23c], dx
jmp 0x1007fb27
mov byte [ebp - 4], 9
push ebx
lea eax, [ebp - 0x23c]
push eax
mov edx, str..KB
call fcn.10012be0
cmp eax, 0xffffffff
jne 0x1007fc75
push ebx
lea ecx, [ebp - 0x23c]
push ecx
mov edx, str._Office
call fcn.10012be0
cmp eax, 0xffffffff
jne 0x1007fc75
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x23c]
mov edi, dword [ebp - 0x2ac]
call fcn.1006fcf0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x228], 8
jb 0x1007fc57
mov edx, dword [ebp - 0x23c]
push edx
call fcn.1009c0c0
add esp, 4
mov dword [ebp - 0x228], 7
mov dword [ebp - 0x22c], ebx
xor eax, eax
mov word [ebp - 0x23c], ax
jmp 0x1007fb27
mov byte [ebp - 4], bl
lea esi, [ebp - 0x23c]
call fcn.10012b80
mov byte [ebp - 4], bl
jmp 0x1007fb27
cmp esi, ebx
je 0x1007fd97
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov dword [ebp - 0x2a0], ebx
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2a4]
cmp eax, ebx
je 0x1007fdd9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a4], ebx
mov eax, esi
mov dword [ebp - 0x2a0], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009c0cb
mov esp, ebp
pop ebp
ret