Function at 0x1c3f750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x1d17014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x1d349c8], 0
je 0x1c3fab3
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.01c97121
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 0x1c3fa98
mov esi, eax
mov byte [eax], 0
cmp eax, 0xffffffff
je 0x1c3fa98
mov byte [esi + 1], 0
cmp esi, 0xfffffffe
je 0x1c3fa98
mov byte [esi + 2], 0
cmp esi, 0xfffffffd
je 0x1c3fa98
mov byte [esi + 3], 0
cmp esi, 0xfffffffc
je 0x1c3fa98
mov byte [esi + 4], 0
cmp esi, 0xfffffffb
je 0x1c3fa98
mov byte [esi + 5], 0
cmp esi, 0xfffffffa
je 0x1c3fa98
mov byte [esi + 6], 0
cmp esi, 0xfffffff9
je 0x1c3fa98
mov byte [esi + 7], 0
cmp esi, 0xfffffff8
je 0x1c3fa98
mov byte [esi + 8], 0
cmp esi, 0xfffffff7
je 0x1c3fa98
mov byte [esi + 9], 0
cmp esi, 0xfffffff6
je 0x1c3fa98
mov byte [esi + 0xa], 0
cmp esi, 0xfffffff5
je 0x1c3fa98
mov byte [esi + 0xb], 0
cmp esi, 0xfffffff4
je 0x1c3fa98
mov byte [esi + 0xc], 0
cmp esi, 0xfffffff3
je 0x1c3fa98
mov byte [esi + 0xd], 0
cmp esi, 0xfffffff2
je 0x1c3fa98
mov byte [esi + 0xe], 0
cmp esi, 0xfffffff1
je 0x1c3fa98
mov byte [esi + 0xf], 0
cmp esi, 0xfffffff0
je 0x1c3fa98
mov byte [esi + 0x10], 0
cmp esi, 0xffffffef
je 0x1c3fa98
mov byte [esi + 0x11], 0
cmp esi, 0xffffffee
je 0x1c3fa98
mov byte [esi + 0x12], 0
cmp esi, 0xffffffed
je 0x1c3fa98
mov byte [esi + 0x13], 0
cmp esi, 0xffffffec
je 0x1c3fa98
mov byte [esi + 0x14], 0
cmp esi, 0xffffffeb
je 0x1c3fa98
mov byte [esi + 0x15], 0
cmp esi, 0xffffffea
je 0x1c3fa98
mov byte [esi + 0x16], 0
cmp esi, 0xffffffe9
je 0x1c3fa98
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 0x1c3f94d
cmp eax, 0xc0000023
je 0x1c3f94d
test eax, eax
js 0x1c3f968
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 0x1c3f9b8
add esi, dword [esi + 8]
add eax, esi
push eax
push esi
call fcn.01c71ec0
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1c3f939
mov dword [ebp - 0x24], eax
push eax
call fcn.01c97151
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c97fe3
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 0x1c3f96c
jae 0x1c3f97c
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3f97c
xor ebx, ebx
jmp 0x1c3f926
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6f1d0
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 0x1c3f99d
cmp eax, 0xc0000023
jne 0x1c3f8fe
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 0x1c3f9c2
jae 0x1c3f9d2
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3f9d2
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x1c3f924
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6f1d0
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 0x1c3f9f3
cmp eax, 0xc0000023
jne 0x1c3f8fe
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 0x1c3fa0e
jae 0x1c3fa1e
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3fa1e
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6f1d0
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 0x1c3fa3f
cmp eax, 0xc0000023
jne 0x1c3f8fe
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 0x1c3fa5a
jae 0x1c3fa6a
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x1c3fa6a
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.01c6f1d0
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 0x1c3f926
cmp eax, 0xc0000023
jne 0x1c3f8fe
jmp 0x1c3f926
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.01cc47f0
call fcn.01c3efd0
test al, al
jne 0x1c3f770
xor ebx, ebx
jmp 0x1c3f939