Function at 0x40aed0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x413034]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x120], 0
test edi, edi
je 0x40b22a
mov eax, dword [esi]
cmp eax, dword [0x40e38c]
jne 0x40af2b
mov ecx, dword [esi + 4]
cmp ecx, dword [0x40e390]
jne 0x40af2b
mov edx, dword [esi + 8]
cmp edx, dword [0x40e394]
jne 0x40af2b
mov eax, dword [esi + 0xc]
cmp eax, dword [0x40e398]
je 0x40b22a
lea ecx, [ebp - 0x120]
push ecx
push 0x40fcf4
push 1
push 0
push 0x40e37c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40af65
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40b22a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x40b22a
cmp dword [edi], 0
mov ebx, edi
je 0x40afe6
cmp dword [ebp + 8], 0
mov eax, dword [ebx + 4]
movq xmm0, qword [eax]
lea edx, [ebp - 0x11c]
push edx
movq qword [ebp - 0x11c], xmm0
movq xmm0, qword [eax + 8]
mov eax, dword [ebp - 0x120]
push 1
push esi
movq qword [ebp - 0x114], xmm0
mov ecx, dword [eax]
push eax
je 0x40afcf
cmp dword [ebx], 1
jne 0x40afab
mov eax, dword [ecx + 0x14]
jmp 0x40afae
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
jns 0x40afde
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40afc8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x40b22c
cmp dword [ebx], 1
jne 0x40afd9
mov eax, dword [ecx + 0x18]
jmp 0x40afdc
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], 0
jne 0x40af6c
cmp dword [ebp + 8], 0
jne 0x40b218
push 0x40
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x10c]
xor ebx, ebx
push ecx
mov dword [ebp - 0x134], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [ebp - 0x124]
inc eax
push edx
mov dword [ebp - 0x124], eax
call fcn.00407370
add esp, 4
test eax, eax
js 0x40b20d
mov edi, dword [ebp - 0x124]
cmp edi, 0x400
jg 0x40b059
push edi
call fcn.004073d0
add esp, 4
test al, al
je 0x40b059
mov eax, edi
call fcn.0040c820
mov esi, esp
jmp 0x40b068
mov eax, edi
lea esi, [ebp - 0x134]
call fcn.004074c0
mov esi, eax
push 3
mov ecx, edi
lea eax, [ebp - 0x10c]
call fcn.00406ad0
mov edi, eax
cmp edi, ebx
je 0x40b20d
lea eax, [ebp - 0x8c]
push eax
mov eax, str.CLSID_
mov ecx, 0x80
call fcn.0040b290
add esp, 4
mov eax, edi
lea ecx, [ebp - 0x8c]
call fcn.0040ae20
mov eax, str.Required_Categories
lea ecx, [ebp - 0x8c]
call fcn.0040ae20
lea ecx, [ebp - 0x8c]
push ecx
push SysReAllocString
lea edx, [ebp - 0x130]
push edx
mov eax, 0x20019
mov dword [ebp - 0x144], SysStringLen
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.00407b80
test eax, eax
jne 0x40b157
mov ecx, dword [ebp - 0x130]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x124]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea esi, [ebp - 0x130]
mov dword [ebp - 0x138], eax
call fcn.00407da0
cmp dword [ebp - 0x138], ebx
jne 0x40b157
cmp dword [ebp - 0x124], ebx
jne 0x40b157
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x144]
call fcn.00407df0
lea eax, [ebp - 0x8c]
push eax
mov eax, str.CLSID_
mov ecx, 0x80
call fcn.0040b290
add esp, 4
mov eax, edi
lea ecx, [ebp - 0x8c]
call fcn.0040ae20
mov eax, str.Implemented_Categories
lea ecx, [ebp - 0x8c]
call fcn.0040ae20
lea ecx, [ebp - 0x8c]
push ecx
push SysReAllocString
lea edx, [ebp - 0x130]
push edx
mov eax, 0x20019
call fcn.00407b80
test eax, eax
jne 0x40b1f7
mov ecx, dword [ebp - 0x130]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x124]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea esi, [ebp - 0x130]
mov edi, eax
call fcn.00407da0
cmp edi, ebx
jne 0x40b1f7
cmp dword [ebp - 0x124], ebx
jne 0x40b1f7
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x144]
call fcn.00407df0
lea esi, [ebp - 0x130]
call fcn.00407dd0
lea esi, [ebp - 0x144]
call fcn.00407dd0
lea esi, [ebp - 0x134]
call fcn.00407340
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40b22a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
lea esp, [ebp - 0x154]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040be38
mov esp, ebp
pop ebp
ret 4