Function at 0x100d7ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x102e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x38], edx
mov ebx, 0x80070057
cmp edx, eax
je 0x100d9c5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea edx, [ebp - 0x2c]
push edx
push eax
lea edx, [ebp - 0x28]
push edx
push eax
mov edi, 0x10023c0
push edi
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
call esi
test eax, eax
jne 0x100d8b2
cmp dword [ebp - 0x28], 7
jne 0x100d87a
push dword [ebp - 0x2c]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100d8ab
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push edi
push dword [ebp - 0x20]
call esi
test eax, eax
jle 0x100d878
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
test ebx, ebx
jl 0x100d8a2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100d8a2
cmp byte [eax], 0
je 0x100d8a2
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0100a036
mov ebx, eax
and dword [ebp - 0x18], 0
jmp 0x100d9bb
mov ebx, 0x8007000e
jmp 0x100d87a
cmp eax, 2
jne 0x100d86a
xor ebx, ebx
jmp 0x100d87a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jae 0x100d9c3
mov ecx, dword [ebp - 0x34]
and dword [ebp - 0x1c], 0
mov edi, dword [ecx + eax*8 + 4]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push edi
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.010052b3
lea ecx, [ebp - 0xc]
mov ebx, eax
call fcn.0101ce9b
test ebx, ebx
jl 0x100d90e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0100d4e1
mov ebx, eax
xor esi, esi
test ebx, ebx
jl 0x100d94e
push dword [0x102e3b8]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100d930
mov esi, 0x10023b4
jmp 0x100d94a
push dword [0x102e3bc]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100d94e
mov esi, 0x10023a4
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x14]
call fcn.0101ce9b
test ebx, ebx
jl 0x100d999
test esi, esi
je 0x100d985
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x1c]
call fcn.0100d50a
mov ebx, eax
test ebx, ebx
jl 0x100d999
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x38]
push dword [ebp - 0x10]
push edi
call fcn.0100d770
mov ebx, eax
test ebx, ebx
jl 0x100d999
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
push dword [ebp - 0x1c]
call fcn.0100d7ea
mov ebx, eax
cmp dword [ebp - 0x1c], 0
je 0x100d9a8
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
call fcn.0101cff5
lea ecx, [ebp - 0xc]
call fcn.0101cff5
inc dword [ebp - 0x18]
test ebx, ebx
jge 0x100d8bb
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.01007c80
leave
ret 8