Function at 0x4ba007
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], eax
mov esi, ebx
mov dword [ebp - 0x10c], esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x108], edi
test eax, eax
je 0x4ba399
push 0x514ecc
push edi
call fcn.004b7e57
pop ecx
pop ecx
test eax, eax
jne 0x4ba399
lea eax, [ebp - 0x10c]
push eax
push 0x510ae8
push 1
push ebx
push 0x514eec
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4ba393
mov eax, dword [ebp - 0x120]
jmp 0x4ba0f3
lea edi, [ebp - 0x11c]
mov esi, dword [eax + 4]
lea edx, [ebp - 0x11c]
push edx
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x10], ebx
je 0x4ba0c7
cmp dword [eax], 1
mov eax, dword [ebp - 0x10c]
push dword [ebp - 0x108]
push eax
mov ecx, dword [eax]
jne 0x4ba0b4
call dword [ecx + 0x14]
jmp 0x4ba0b7
call dword [ecx + 0x1c]
test eax, eax
js 0x4ba177
mov edi, dword [ebp - 0x108]
jmp 0x4ba0e4
cmp dword [eax], 1
mov eax, dword [ebp - 0x10c]
mov edi, dword [ebp - 0x108]
push edi
push eax
mov ecx, dword [eax]
jne 0x4ba0e1
call dword [ecx + 0x18]
jmp 0x4ba0e4
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x120]
add eax, 8
mov dword [ebp - 0x120], eax
cmp dword [eax], ebx
jne 0x4ba080
cmp dword [ebp + 0x10], ebx
jne 0x4ba38b
push 0x40
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, ebx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x108], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4ba121
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
call fcn.004b371f
add esp, 0xc
test eax, eax
js 0x4ba38b
mov edi, dword [ebp - 0x120]
cmp edi, 0x400
jg 0x4ba182
push edi
call fcn.004b7cc5
pop ecx
test al, al
je 0x4ba182
mov eax, edi
call fcn.004ec300
mov eax, esp
jmp 0x4ba194
mov esi, dword [ebp - 0x10c]
jmp 0x4ba39b
push edi
lea ecx, [ebp - 0x108]
call fcn.004b483b
mov esi, dword [ebp - 0x108]
push 3
push edi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.004b4bdc
mov edi, eax
mov dword [ebp - 0x120], edi
test edi, edi
je 0x4ba387
push 0x510af8
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
push edi
mov edi, 0x80
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004ee1a2
push eax
call fcn.004b4a42
push str.Required_Categories
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004ee1a2
push eax
call fcn.004b4a42
xor eax, eax
mov dword [ebp - 0x108], ebx
lea edi, [ebp - 0x138]
add esp, 0x30
stosd dword es:[edi], eax
mov ecx, SysReAllocString
push 0x20019
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x138], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x84]
push eax
push ecx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.004b63ca
test eax, eax
jne 0x4ba2ad
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov edi, eax
call fcn.004b4ef2
test edi, edi
jne 0x4ba2ad
cmp dword [ebp - 0x108], ebx
jne 0x4ba2ad
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x138]
call fcn.004b5212
push 0x510af8
mov edi, 0x80
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
push dword [ebp - 0x120]
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004ee1a2
push eax
call fcn.004b4a42
push str.Implemented_Categories
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004ee1a2
push eax
call fcn.004b4a42
add esp, 0x30
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x12c]
push 0x20019
push eax
push SysReAllocString
call fcn.004b63ca
test eax, eax
jne 0x4ba366
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov edi, eax
call fcn.004b4ef2
test edi, edi
jne 0x4ba366
cmp dword [ebp - 0x108], ebx
jne 0x4ba366
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x138]
call fcn.004b5212
lea ecx, [ebp - 0x12c]
call fcn.004b4ef2
lea ecx, [ebp - 0x138]
call fcn.004b4ef2
jmp 0x4ba387
push esi
mov esi, dword [esi]
call fcn.004eb8b8
pop ecx
test esi, esi
jne 0x4ba37e
mov esi, dword [ebp - 0x10c]
jmp 0x4ba39d
mov esi, dword [ebp - 0x10c]
mov eax, ebx
mov ebx, eax
test esi, esi
je 0x4ba3a7
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, ebx
lea esp, [ebp - 0x144]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 0xc