Function at 0x101cb470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101fc3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
mov edi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebx
jbe 0x101cb4c4
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
jbe 0x101cb4da
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x20]
push esi
push ebx
push eax
push ebx
lea ecx, [esp + 0x30]
push ecx
call fcn.10031d50
xor ebx, ebx
cmp dword [edi + 0x18], 8
mov dword [esp + 0x14], ebx
jb 0x101cb4f9
mov esi, dword [edi + 4]
jmp 0x101cb4fc
lea esi, [edi + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, 5
jne 0x101cb53d
cmp esi, ebx
je 0x101cb57f
mov edx, esi
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.101cb770
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
jne 0x101cb57f
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x101cb57f
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
jb 0x101cb560
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x101cb5a1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
mov dword [esp + 0x58], ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
cmp ecx, edx
ja 0x101cb5d2
or eax, 0xffffffff
mov ebx, ecx
lea esi, [esp + 0x2c]
call fcn.10007ad0
jmp 0x101cb5e4
mov eax, ecx
push ebx
sub eax, edx
lea edi, [esp + 0x30]
call fcn.10031c10
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov eax, 8
cmp dword [esp + 0x44], eax
jae 0x101cb5f7
lea ecx, [esp + 0x30]
cmp dword [edi + 0x18], eax
jb 0x101cb604
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
jmp 0x101cb608
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101cb643
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10001dd0
jmp 0x101cb57f
lea edx, [esp + 0x18]
push edx
lea edi, [esp + 0x30]
mov dword [esp + 0x1c], 0
call fcn.101cb840
lea ebx, [eax + 1]
or eax, 0xffffffff
mov esi, edi
call fcn.10007ad0
mov eax, dword [esp + 0x28]
push eax
mov ecx, edi
push 0
push ecx
call fcn.1019fef0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x101cb687
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10001dd0
mov al, 1
jmp 0x101cb581