Function at 0x10003ffd
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x140
mov eax, 0x10031046
call fcn.1002f9a6
mov dword [ebp - 0x12c], edx
mov esi, ecx
mov dword [ebp - 0x128], esi
xor ebx, ebx
mov dword [ebp - 0x134], ebx
test edx, edx
je 0x1000438b
mov edx, 0x100322fc
call fcn.100011db
test eax, eax
jne 0x1000438b
lea eax, [ebp - 0x134]
push eax
push 0x1003826c
push 1
push ebx
push 0x1003231c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000438b
mov eax, dword [ebp - 0x12c]
jmp 0x100040d9
lea edi, [ebp - 0x124]
mov esi, dword [eax + 4]
lea edx, [ebp - 0x124]
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 + 8], ebx
je 0x100040ad
cmp dword [eax], 1
mov eax, dword [ebp - 0x134]
push dword [ebp - 0x128]
push eax
mov ecx, dword [eax]
jne 0x1000409a
call dword [ecx + 0x14]
jmp 0x1000409d
call dword [ecx + 0x1c]
test eax, eax
js 0x1000438d
mov esi, dword [ebp - 0x128]
jmp 0x100040ca
cmp dword [eax], 1
mov eax, dword [ebp - 0x134]
mov esi, dword [ebp - 0x128]
push esi
push eax
mov ecx, dword [eax]
jne 0x100040c7
call dword [ecx + 0x18]
jmp 0x100040ca
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x12c]
add eax, 8
mov dword [ebp - 0x12c], eax
cmp dword [eax], ebx
jne 0x10004066
cmp dword [ebp + 8], ebx
jne 0x1000438f
push 0x40
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x10004102
push 0xd
pop eax
jmp 0x1000438d
mov esi, ebx
lea edx, [ebp - 0x114]
mov dword [ebp - 0x130], esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x10004113
sub edx, ecx
sar edx, 1
inc edx
push ecx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x12c], edx
call fcn.10001200
test eax, eax
js 0x1000438f
mov edi, dword [ebp - 0x12c]
cmp edi, 0x400
jg 0x10004161
mov ecx, edi
call fcn.10001230
test al, al
je 0x10004161
mov eax, edi
call fcn.1002fa4e
mov eax, esp
jmp 0x10004173
push edi
lea ecx, [ebp - 0x130]
call fcn.10011f7e
mov esi, dword [ebp - 0x130]
push 3
push edi
lea edx, [ebp - 0x114]
mov ecx, eax
call fcn.10011f7e
mov dword [ebp - 0x130], eax
test eax, eax
je 0x10004385
push str.CLSID_
mov edi, 0x80
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.10011f7e
add esp, 0xc
mov ecx, eax
call fcn.1000138d
push dword [ebp - 0x130]
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.10011f7e
add esp, 0xc
mov ecx, eax
call fcn.1000138d
push str.Required_Categories
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.10011f7e
add esp, 0xc
mov ecx, eax
call fcn.1000138d
push 0x20019
lea eax, [ebp - 0x94]
mov dword [ebp - 0x148], ebx
mov ecx, SysReAllocString
mov dword [ebp - 0x144], ebx
push eax
mov dword [ebp - 0x14c], ecx
push ecx
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x128], ebx
call fcn.10011f7e
test eax, eax
jne 0x1000429a
push ebx
mov edi, dword [ebp - 0x140]
lea eax, [ebp - 0x128]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x12c], eax
test edi, edi
je 0x10004271
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
test eax, eax
jne 0x10004295
cmp dword [ebp - 0x128], ebx
jne 0x10004295
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x14c]
call fcn.10011f7e
mov edi, 0x80
push str.CLSID_
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.10011f7e
add esp, 0xc
mov ecx, eax
call fcn.1000138d
push dword [ebp - 0x130]
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.10011f7e
add esp, 0xc
mov ecx, eax
call fcn.1000138d
push str.Implemented_Categories
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.10011f7e
add esp, 0xc
mov ecx, eax
call fcn.1000138d
push 0x20019
lea eax, [ebp - 0x94]
push eax
push SysReAllocString
lea ecx, [ebp - 0x140]
call fcn.10011f7e
mov edi, dword [ebp - 0x140]
test eax, eax
jne 0x10004364
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x130], eax
test edi, edi
je 0x10004346
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x130]
mov edi, ebx
test eax, eax
jne 0x10004364
cmp dword [ebp - 0x128], ebx
jne 0x10004364
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x14c]
call fcn.10011f7e
test edi, edi
je 0x1000436f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004385
push esi
mov esi, dword [esi]
call fcn.10011f7e
pop ecx
test esi, esi
jne 0x1000437c
jmp 0x1000438f
mov eax, ebx
mov ebx, eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x100043a6
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
lea esp, [ebp - 0x15c]
call fcn.1002f958
ret 4