Function at 0x10055c58
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
mov eax, ecx
xor edx, edx
mov dword [ebp - 0x48c], eax
mov dword [ebp - 0x46c], edx
mov esi, 0x80004005
mov dword [ebp - 0x478], edx
push edi
mov edi, edx
mov dword [ebp - 0x470], edi
test eax, eax
je 0x10055ec3
test ebx, ebx
je 0x10055ec3
mov dword [eax], edx
mov eax, 0x10007418
mov dword [ebx], edx
cmp dword [ebp + 8], edx
jne 0x10055cb8
mov eax, 0x100073b8
lea ecx, [ebp - 0x46c]
push ecx
push 0x20019
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10055eae
push 0x208
xor esi, esi
lea eax, [ebp - 0x250]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x480]
xor ecx, ecx
mov dword [ebp - 0x480], ecx
push ecx
push ecx
push eax
push ecx
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x250]
push eax
push ecx
jmp 0x10055e78
xor eax, eax
lea edi, [ebp - 0x468]
stosd dword es:[edi], eax
push 0x208
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x458]
xor edi, edi
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x250]
mov edx, 0x104
lea ecx, [ebp - 0x458]
push eax
call fcn.1000b82d
lea ecx, [ebp - 0x458]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10055d59
sub ecx, edx
sar ecx, 1
je 0x10055e4d
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x10055e4d
push 0x40
lea eax, [ebp - 0x48]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x488], 0x20
lea eax, [ebp - 0x488]
mov dword [ebp - 0x484], edi
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x484]
push eax
push edi
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10055e05
push 0x100073b4
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10055e05
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x468]
mov ecx, edi
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x10055e4d
inc ecx
lea eax, [ebp - 0x468]
cmp ecx, 4
jne 0x10055df1
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x10055ed8
mov ecx, dword [ebp + 8]
lea esi, [ebp - 0x468]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x470]
mov esi, dword [ebp - 0x47c]
inc edi
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x478]
mov dword [eax + 0x1c], ecx
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x470], edi
jmp 0x10055e53
mov edi, dword [ebp - 0x470]
xor eax, eax
inc esi
xor ecx, ecx
mov word [ebp - 0x250], ax
push ecx
push ecx
lea eax, [ebp - 0x480]
push eax
push ecx
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x250]
push eax
push esi
push dword [ebp - 0x46c]
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x474], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10055d16
mov eax, dword [ebp - 0x48c]
xor esi, esi
mov ecx, dword [ebp - 0x478]
mov dword [eax], ecx
mov dword [ebx], edi
cmp dword [ebp - 0x46c], 0
je 0x10055ec3
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 8
mov esi, 0x8007000e
jmp 0x10055eae