Function at 0x104c166
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x10b5894]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x14]
cmp eax, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
je 0x104c1bf
mov dword [eax], esi
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.010a4a18
mov ebx, eax
cmp ebx, esi
je 0x104c1dd
push ebx
push 0x2f90138
jmp 0x104c36d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x104c1e2
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
mov ebx, 0xf003f
push ebx
push esi
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call edi
test eax, eax
je 0x104c2b0
push 0x5c
push dword [ebp - 0x210]
mov dword [ebp - 0x214], esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
cmp eax, esi
pop ecx
pop ecx
je 0x104c2b0
mov word [eax], si
sub eax, dword [ebp - 0x210]
shr eax, 1
inc eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
push ebx
push esi
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call edi
mov ebx, eax
cmp ebx, 2
jne 0x104c296
cmp dword [ebp + 0x10], esi
je 0x104c29a
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
cmp ebx, esi
je 0x104c2b0
push ebx
push 0x3170138
jmp 0x104c2a0
cmp ebx, esi
je 0x104c2b0
push ebx
push 0x3190138
push dword [ebp - 0x210]
call fcn.0107ae7f
jmp 0x104c3a0
cmp dword [ebp - 0x214], esi
je 0x104c350
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
lea eax, [eax + ecx*2]
cmp word [eax], si
mov dword [ebp - 0x220], eax
je 0x104c350
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x21c], esi
mov ebx, 0x104
push esi
jmp 0x104c330
push dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.0107d890
test eax, eax
je 0x104c344
inc dword [ebp - 0x21c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call edi
test eax, eax
je 0x104c2fc
jmp 0x104c350
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], eax
push dword [ebp - 0x22c]
push dword [ebp - 0x220]
call fcn.010a4a18
mov ebx, eax
cmp ebx, esi
je 0x104c374
push ebx
push 0x3390138
call fcn.0107ae44
jmp 0x104c3a0
mov eax, dword [ebp - 0x224]
cmp eax, esi
je 0x104c38c
mov ecx, dword [ebp - 0x214]
mov dword [eax], ecx
mov dword [ebp - 0x214], esi
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x228]
mov dword [ecx], eax
mov dword [ebp - 0x210], esi
cmp dword [ebp - 0x210], esi
je 0x104c3b4
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x214], esi
je 0x104c3c8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.010a47cf
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01068363
leave
ret 0x18