Function at 0x5601c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x73e53c], 0
je 0x560523
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.0066d870
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 0x560508
mov esi, eax
mov byte [eax], 0
cmp eax, 0xffffffff
je 0x560508
mov byte [esi + 1], 0
cmp esi, 0xfffffffe
je 0x560508
mov byte [esi + 2], 0
cmp esi, 0xfffffffd
je 0x560508
mov byte [esi + 3], 0
cmp esi, 0xfffffffc
je 0x560508
mov byte [esi + 4], 0
cmp esi, 0xfffffffb
je 0x560508
mov byte [esi + 5], 0
cmp esi, 0xfffffffa
je 0x560508
mov byte [esi + 6], 0
cmp esi, 0xfffffff9
je 0x560508
mov byte [esi + 7], 0
cmp esi, 0xfffffff8
je 0x560508
mov byte [esi + 8], 0
cmp esi, 0xfffffff7
je 0x560508
mov byte [esi + 9], 0
cmp esi, 0xfffffff6
je 0x560508
mov byte [esi + 0xa], 0
cmp esi, 0xfffffff5
je 0x560508
mov byte [esi + 0xb], 0
cmp esi, 0xfffffff4
je 0x560508
mov byte [esi + 0xc], 0
cmp esi, 0xfffffff3
je 0x560508
mov byte [esi + 0xd], 0
cmp esi, 0xfffffff2
je 0x560508
mov byte [esi + 0xe], 0
cmp esi, 0xfffffff1
je 0x560508
mov byte [esi + 0xf], 0
cmp esi, 0xfffffff0
je 0x560508
mov byte [esi + 0x10], 0
cmp esi, 0xffffffef
je 0x560508
mov byte [esi + 0x11], 0
cmp esi, 0xffffffee
je 0x560508
mov byte [esi + 0x12], 0
cmp esi, 0xffffffed
je 0x560508
mov byte [esi + 0x13], 0
cmp esi, 0xffffffec
je 0x560508
mov byte [esi + 0x14], 0
cmp esi, 0xffffffeb
je 0x560508
mov byte [esi + 0x15], 0
cmp esi, 0xffffffea
je 0x560508
mov byte [esi + 0x16], 0
cmp esi, 0xffffffe9
je 0x560508
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 0x5603bd
cmp eax, 0xc0000023
je 0x5603bd
test eax, eax
js 0x5603d8
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 0x560428
add esi, dword [esi + 8]
add eax, esi
push eax
push esi
call fcn.0062b430
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5603a9
mov dword [ebp - 0x24], eax
push eax
call fcn.0066d8a0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066e1f1
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 0x5603dc
jae 0x5603ec
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x5603ec
xor ebx, ebx
jmp 0x560396
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.00629500
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 0x56040d
cmp eax, 0xc0000023
jne 0x56036e
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 0x560432
jae 0x560442
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x560442
mov eax, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x560394
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.00629500
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 0x560463
cmp eax, 0xc0000023
jne 0x56036e
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 0x56047e
jae 0x56048e
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x56048e
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.00629500
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 0x5604af
cmp eax, 0xc0000023
jne 0x56036e
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 0x5604ca
jae 0x5604da
lea ecx, [esi + eax]
mov dword [ebp - 0x24], ecx
jmp 0x5604da
lea esi, [ebp - 0x28]
mov ecx, esi
push edx
call fcn.00629500
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 0x560396
cmp eax, 0xc0000023
jne 0x56036e
jmp 0x560396
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.0069cc70
call fcn.0055fa50
test al, al
jne 0x5601e0
xor ebx, ebx
jmp 0x5603a9