Function at 0x1c3f470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x1d08010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x1d0dadc], 0
je 0x1c3f7d3
mov eax, dword [ebp + 0xc]
xor ecx, ecx
lea edi, [ebp - 0x18]
mov dword [edi + 4], ecx
mov dword [edi], ecx
push eax
push edi
call sub.ntdll.dll_RtlInitUnicodeString
mov ebx, 0x18
mov dword [ebp - 0x1c], ebx
push ebx
call fcn.01c928b1
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
add ebx, eax
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x1c3f7b8
mov esi, eax
mov byte [eax], 0
cmp eax, 0xffffffff
je 0x1c3f7b8
mov byte [esi + 1], 0
cmp esi, 0xfffffffe
je 0x1c3f7b8
mov byte [esi + 2], 0
cmp esi, 0xfffffffd
je 0x1c3f7b8
mov byte [esi + 3], 0
cmp esi, 0xfffffffc
je 0x1c3f7b8
mov byte [esi + 4], 0
cmp esi, 0xfffffffb
je 0x1c3f7b8
mov byte [esi + 5], 0
cmp esi, 0xfffffffa
je 0x1c3f7b8
mov byte [esi + 6], 0
cmp esi, 0xfffffff9
je 0x1c3f7b8
mov byte [esi + 7], 0
cmp esi, 0xfffffff8
je 0x1c3f7b8
mov byte [esi + 8], 0
cmp esi, 0xfffffff7
je 0x1c3f7b8
mov byte [esi + 9], 0
cmp esi, 0xfffffff6
je 0x1c3f7b8
mov byte [esi + 0xa], 0
cmp esi, 0xfffffff5
je 0x1c3f7b8
mov byte [esi + 0xb], 0
cmp esi, 0xfffffff4
je 0x1c3f7b8
mov byte [esi + 0xc], 0
cmp esi, 0xfffffff3
je 0x1c3f7b8
mov byte [esi + 0xd], 0
cmp esi, 0xfffffff2
je 0x1c3f7b8
mov byte [esi + 0xe], 0
cmp esi, 0xfffffff1
je 0x1c3f7b8
mov byte [esi + 0xf], 0
cmp esi, 0xfffffff0
je 0x1c3f7b8
mov byte [esi + 0x10], 0
cmp esi, 0xffffffef
je 0x1c3f7b8
mov byte [esi + 0x11], 0
cmp esi, 0xffffffee
je 0x1c3f7b8
mov byte [esi + 0x12], 0
cmp esi, 0xffffffed
je 0x1c3f7b8
mov byte [esi + 0x13], 0
cmp esi, 0xffffffec
je 0x1c3f7b8
mov byte [esi + 0x14], 0
cmp esi, 0xffffffeb
je 0x1c3f7b8
mov byte [esi + 0x15], 0
cmp esi, 0xffffffea
je 0x1c3f7b8
mov byte [esi + 0x16], 0
cmp esi, 0xffffffe9
je 0x1c3f7b8
mov eax, dword [ebp + 8]
mov byte [esi + 0x17], 0
mov dword [ebp - 0x24], ebx
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push 0x18
push esi
push 1
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1c3f66d
cmp eax, 0xc0000023
je 0x1c3f66d
test eax, eax
js 0x1c3f688
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 4]
mov dword [eax], edx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1c3f6d8
add esi, dword [esi + 8]
add eax, esi
push eax
push esi
call fcn.01c6e820
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1c3f659
mov dword [ebp - 0x24], eax
push eax
call fcn.01c928e1
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c938a3
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub ecx, esi
mov edx, eax
sub edx, ecx
ja 0x1c3f68c
jae 0x1c3f69c
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3f69c
xor ebx, ebx
jmp 0x1c3f646
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6baa0
mov esi, dword [esi]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push 1
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1c3f6bd
cmp eax, 0xc0000023
jne 0x1c3f61e
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub ecx, esi
mov edx, eax
sub edx, ecx
ja 0x1c3f6e2
jae 0x1c3f6f2
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3f6f2
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x1c3f644
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6baa0
mov esi, dword [esi]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push 1
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1c3f713
cmp eax, 0xc0000023
jne 0x1c3f61e
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub ecx, esi
mov edx, eax
sub edx, ecx
ja 0x1c3f72e
jae 0x1c3f73e
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3f73e
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6baa0
mov esi, dword [esi]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push 1
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1c3f75f
cmp eax, 0xc0000023
jne 0x1c3f61e
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
sub ecx, esi
mov edx, eax
sub edx, ecx
ja 0x1c3f77a
jae 0x1c3f78a
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3f78a
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6baa0
mov esi, dword [esi]
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push 1
push edi
push dword [ebp + 8]
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x1c3f646
cmp eax, 0xc0000023
jne 0x1c3f61e
jmp 0x1c3f646
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.01cbea60
call fcn.01c3ecf0
test al, al
jne 0x1c3f490
xor ebx, ebx
jmp 0x1c3f659