Function at 0x435570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x55cd14], 0
je 0x4358d3
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.0049f91a
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 0x4358b8
mov esi, eax
mov byte [eax], 0
cmp eax, 0xffffffff
je 0x4358b8
mov byte [esi + 1], 0
cmp esi, 0xfffffffe
je 0x4358b8
mov byte [esi + 2], 0
cmp esi, 0xfffffffd
je 0x4358b8
mov byte [esi + 3], 0
cmp esi, 0xfffffffc
je 0x4358b8
mov byte [esi + 4], 0
cmp esi, 0xfffffffb
je 0x4358b8
mov byte [esi + 5], 0
cmp esi, 0xfffffffa
je 0x4358b8
mov byte [esi + 6], 0
cmp esi, 0xfffffff9
je 0x4358b8
mov byte [esi + 7], 0
cmp esi, 0xfffffff8
je 0x4358b8
mov byte [esi + 8], 0
cmp esi, 0xfffffff7
je 0x4358b8
mov byte [esi + 9], 0
cmp esi, 0xfffffff6
je 0x4358b8
mov byte [esi + 0xa], 0
cmp esi, 0xfffffff5
je 0x4358b8
mov byte [esi + 0xb], 0
cmp esi, 0xfffffff4
je 0x4358b8
mov byte [esi + 0xc], 0
cmp esi, 0xfffffff3
je 0x4358b8
mov byte [esi + 0xd], 0
cmp esi, 0xfffffff2
je 0x4358b8
mov byte [esi + 0xe], 0
cmp esi, 0xfffffff1
je 0x4358b8
mov byte [esi + 0xf], 0
cmp esi, 0xfffffff0
je 0x4358b8
mov byte [esi + 0x10], 0
cmp esi, 0xffffffef
je 0x4358b8
mov byte [esi + 0x11], 0
cmp esi, 0xffffffee
je 0x4358b8
mov byte [esi + 0x12], 0
cmp esi, 0xffffffed
je 0x4358b8
mov byte [esi + 0x13], 0
cmp esi, 0xffffffec
je 0x4358b8
mov byte [esi + 0x14], 0
cmp esi, 0xffffffeb
je 0x4358b8
mov byte [esi + 0x15], 0
cmp esi, 0xffffffea
je 0x4358b8
mov byte [esi + 0x16], 0
cmp esi, 0xffffffe9
je 0x4358b8
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 0x43576d
cmp eax, 0xc0000023
je 0x43576d
test eax, eax
js 0x435788
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 0x4357d8
add esi, dword [esi + 8]
add eax, esi
push eax
push esi
call fcn.0045e6f0
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x435759
mov dword [ebp - 0x24], eax
push eax
call fcn.0049f94a
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
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 0x43578c
jae 0x43579c
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x43579c
xor ebx, ebx
jmp 0x435746
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.0045c720
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 0x4357bd
cmp eax, 0xc0000023
jne 0x43571e
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 0x4357e2
jae 0x4357f2
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x4357f2
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x435744
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.0045c720
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 0x435813
cmp eax, 0xc0000023
jne 0x43571e
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 0x43582e
jae 0x43583e
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x43583e
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.0045c720
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 0x43585f
cmp eax, 0xc0000023
jne 0x43571e
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 0x43587a
jae 0x43588a
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x43588a
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.0045c720
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 0x435746
cmp eax, 0xc0000023
jne 0x43571e
jmp 0x435746
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.004cb230
call fcn.00434dc0
test al, al
jne 0x435590
xor ebx, ebx
jmp 0x435759