Function at 0x10007040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040adb
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x10058074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x848], eax
xor eax, eax
mov dword [ebp - 0x838], ebx
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x814], 7
mov dword [ebp - 0x818], 0
mov word [ebp - 0x828], ax
cmp word [edx], ax
jne 0x100070c5
xor ecx, ecx
jmp 0x100070df
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100070d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x828]
call fcn.10004960
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x82c], 0
call fcn.10010840
test al, al
je 0x10007134
push eax
push ebp
push ebp
push edi
push esp
push esp
push edx
push esp
pop eax
pop esi
push esp
push edi
pop eax
push esi
pop ebp
pop edi
push ebp
push ecx
push eax
push esp
push esi
push ebx
push ebx
push edx
push ecx
pop ebp
call fcn.10010680
test al, al
je 0x10007152
push esi
pop edi
push eax
push ecx
push esi
push esi
pop ecx
push esi
pop ecx
push eax
push edx
push eax
pop ebp
pop esi
push eax
pop ecx
pop esp
pop edi
push eax
pop edx
pop edx
lea eax, [ebp - 0x834]
push eax
push 0xf013f
push 0
push str.SoftWare
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100071ba
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov word [ebx], ax
lea eax, [ebp - 0x828]
push eax
call fcn.10004020
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x100071b3
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.10004ab0
mov eax, ebx
jmp 0x1000744c
call fcn.10010840
test al, al
je 0x100071e1
push edx
push edi
pop edi
pop ebp
push ebp
pop ebx
pop esp
pop ebx
push eax
pop ebp
push ebx
push esi
pop edi
pop eax
push esi
push esp
push eax
pop ebx
push ecx
push esi
pop edx
pop esi
pop esp
pop edx
push eax
push eax
push esi
pop eax
push ecx
pop ebx
call fcn.100101b0
test al, al
je 0x100071fb
push edi
pop edi
push esi
push esp
pop ecx
push edx
push ebx
pop ebx
push ebp
push edx
pop edi
push esi
pop ebp
pop edx
push esp
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x830]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x83c]
push dword [ebp - 0x834]
call esi
test eax, eax
je 0x10007281
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x838]
xor eax, eax
mov ecx, esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x828]
push eax
call fcn.10004020
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x1000727a
inc eax
lea ecx, [ebp - 0x828]
push eax
push dword [ebp - 0x828]
call fcn.10004ab0
mov eax, esi
jmp 0x1000744c
push 0
lea eax, [ebp - 0x82c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x840]
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x100072f8
push dword [ebp - 0x830]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x82c]
call esi
mov esi, dword [ebp - 0x838]
xor eax, eax
mov ecx, esi
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x828]
push eax
call fcn.10004020
lea ecx, [ebp - 0x828]
call fcn.100014c0
mov eax, esi
jmp 0x1000744c
call fcn.100107d0
test al, al
je 0x1000731a
pop esp
push eax
push esp
push ebx
pop edx
pop ebp
pop ebp
pop edx
pop ebp
pop esi
push edx
pop ebp
pop edx
push ebx
pop ebx
push ebx
push ecx
pop ecx
pop eax
pop edx
pop esp
pop ebp
pop eax
push ebx
push esp
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1002ad90
add esp, 0xc
mov dword [ebp - 0x844], 0x400
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push dword [ebp - 0x848]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x82c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
push dword [ebp - 0x834]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007385
sub ecx, edx
sar ecx, 1
je 0x100072bf
call fcn.10010680
test al, al
je 0x100073c3
push ebp
push edx
pop ecx
pop edi
push eax
push edi
push esp
pop ecx
pop edx
push eax
push edx
pop ecx
push eax
push ecx
push eax
pop edi
pop ecx
pop edx
push esi
pop esp
pop eax
push edx
pop ebp
pop ebx
push ecx
push ebx
push edx
pop edi
push edx
push ecx
pop ecx
push ebx
call fcn.10010a70
test al, al
je 0x100073e9
pop ebp
pop esp
push edx
push ebx
push ebp
pop esp
push eax
push edx
push eax
pop ecx
push ebp
pop esp
pop edx
pop ebx
push ebx
pop edx
pop edi
push ebp
push edx
push edi
pop ebp
pop ebp
push ebx
push ecx
pop eax
pop eax
pop esi
push ebx
pop ebx
call fcn.10010140
test al, al
je 0x1000740b
pop eax
pop esp
pop ecx
pop edi
push ebp
pop ebp
push ecx
pop esp
push edi
pop edx
push ecx
push ebp
push ecx
push eax
pop esi
pop edi
pop eax
pop ebx
pop esi
push esi
push ebp
push esp
push edx
push edi
pop edi
call fcn.10010370
test al, al
je 0x10007429
push edx
pop eax
push ebx
pop ebx
push eax
pop ebx
push ebx
pop edx
pop edx
push esp
push ebx
push esi
pop edx
push ebx
push edx
push ecx
pop ebx
push ecx
push edi
push edx
pop ebx
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x810]
push eax
call fcn.100011f0
lea ecx, [ebp - 0x828]
call fcn.100014c0
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001212b
mov esp, ebp
pop ebp
ret