Function at 0x10050a60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x218], edi
call fcn.102134e7
movzx esi, byte [ebp + 0xc]
xor ebx, ebx
mov eax, dword [0x10255438]
xor esi, 1
shl esi, 8
add esp, 0xc
add esi, 0x20119
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
test eax, eax
jne 0x10050ac6
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x10050b11
mov eax, dword [0x10255438]
test eax, eax
jne 0x10050ae2
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x10050af3
mov eax, dword [eax + 0xd0]
jmp 0x10050af5
xor eax, eax
test eax, eax
je 0x10050b11
lea ecx, [ebp - 0x210]
push ecx
push esi
push 0
push str.CLSID
push SysReAllocString
call eax
jmp 0x10050b2b
lea eax, [ebp - 0x210]
push eax
push esi
push 0
push str.CLSID
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10050b42
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10212f74
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10255438]
mov esi, dword [ebp - 0x210]
test eax, eax
jne 0x10050b5b
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x10050ba0
mov eax, dword [0x10255438]
test eax, eax
jne 0x10050b77
call fcn.1003be40
mov dword [0x10255438], eax
cmp dword [eax + 0x140], 2
jne 0x10050b88
mov eax, dword [eax + 0xf8]
jmp 0x10050b8a
xor eax, eax
test eax, eax
je 0x10050ba0
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push esi
call eax
jmp 0x10050bb4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10050d3b
lea eax, [ebp - 0x20c]
push eax
call fcn.1021350b
mov eax, dword [edi]
push 0x2c
mov dword [ebp - 0x214], eax
call fcn.10213511
mov ebx, eax
lea ecx, [ebp - 0x20c]
lea esi, [ebx + 0x10]
add esp, 8
mov dword [esi + 0x10], 0
lea edx, [ecx + 2]
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x10050c00
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10050c00
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10008240
mov eax, dword [ebp - 0x214]
mov ecx, edi
mov dword [esi + 0x18], 0
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0x22c]
push esi
push eax
mov word [ebx + 0xc], 0
call fcn.100210f0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x220], edx
cmp byte [eax + 0xd], 0
jne 0x10050d00
cmp dword [eax + 0x24], 8
lea edx, [eax + 0x10]
jb 0x10050c72
mov edx, dword [eax + 0x10]
mov edi, dword [esi + 0x14]
mov ecx, esi
cmp edi, 8
jb 0x10050c7e
mov ecx, dword [esi]
push dword [eax + 0x20]
push edx
push dword [esi + 0x10]
push ecx
call fcn.100215c0
add esp, 0x10
test eax, eax
js 0x10050cee
cmp edi, 8
jb 0x10050cc8
mov eax, dword [esi]
lea ecx, [edi*2 + 2]
cmp ecx, 0x1000
jb 0x10050cbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050d59
mov eax, edx
push ecx
push eax
call fcn.102134ff
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
push 0x2c
push ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.102134ff
mov edi, dword [ebp - 0x218]
add esp, 8
jmp 0x10050d13
mov edi, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x220]
cmp dword [edi + 4], 0x5d1745d
je 0x10050d5e
push ebx
push edx
push ecx
mov ecx, edi
call fcn.10007940
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
mov ebx, dword [ebp - 0x21c]
add esp, 0xc
inc ebx
mov dword [ebp - 0x21c], ebx
jmp 0x10050b42
push dword [ebp - 0x210]
call fcn.10034a70
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
call fcn.10200ab0
call fcn.10007b50
int3