Function at 0x4301b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x4ce008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x4e0d84], 0
je 0x4304e8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
lea edx, [ebp - 0x18]
mov dword [edx + 4], ecx
mov dword [edx], ecx
push eax
push edx
call sub.ntdll.dll_RtlInitUnicodeString
mov ebx, 0x18
mov dword [ebp - 0x1c], ebx
push ebx
call fcn.004625e7
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 0x4304d7
mov byte [eax], 0
cmp eax, 0xffffffff
je 0x4304d7
mov byte [eax + 1], 0
cmp eax, 0xfffffffe
je 0x4304d7
mov byte [eax + 2], 0
cmp eax, 0xfffffffd
je 0x4304d7
mov byte [eax + 3], 0
cmp eax, 0xfffffffc
je 0x4304d7
mov byte [eax + 4], 0
cmp eax, 0xfffffffb
je 0x4304d7
mov byte [eax + 5], 0
cmp eax, 0xfffffffa
je 0x4304d7
mov byte [eax + 6], 0
cmp eax, 0xfffffff9
je 0x4304d7
mov byte [eax + 7], 0
cmp eax, 0xfffffff8
je 0x4304d7
mov byte [eax + 8], 0
cmp eax, 0xfffffff7
je 0x4304d7
mov byte [eax + 9], 0
cmp eax, 0xfffffff6
je 0x4304d7
mov byte [eax + 0xa], 0
cmp eax, 0xfffffff5
je 0x4304d7
mov byte [eax + 0xb], 0
cmp eax, 0xfffffff4
je 0x4304d7
mov byte [eax + 0xc], 0
cmp eax, 0xfffffff3
je 0x4304d7
mov byte [eax + 0xd], 0
cmp eax, 0xfffffff2
je 0x4304d7
mov byte [eax + 0xe], 0
cmp eax, 0xfffffff1
je 0x4304d7
mov byte [eax + 0xf], 0
cmp eax, 0xfffffff0
je 0x4304d7
mov byte [eax + 0x10], 0
cmp eax, 0xffffffef
je 0x4304d7
mov byte [eax + 0x11], 0
cmp eax, 0xffffffee
je 0x4304d7
mov byte [eax + 0x12], 0
cmp eax, 0xffffffed
je 0x4304d7
mov byte [eax + 0x13], 0
cmp eax, 0xffffffec
je 0x4304d7
mov byte [eax + 0x14], 0
cmp eax, 0xffffffeb
je 0x4304d7
mov byte [eax + 0x15], 0
cmp eax, 0xffffffea
je 0x4304d7
mov byte [eax + 0x16], 0
cmp eax, 0xffffffe9
je 0x4304d7
mov edi, dword [ebp + 8]
mov byte [eax + 0x17], 0
lea esi, [ebp - 0x28]
mov dword [esi + 4], ebx
mov ebx, 0x18
mov ecx, esi
push ebx
call fcn.0043f610
mov esi, dword [esi]
lea eax, [ebp - 0x1c]
push eax
push ebx
mov ebx, edi
push esi
push 1
lea edi, [ebp - 0x18]
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x4303b5
cmp eax, 0xc0000023
je 0x4303b5
test eax, eax
js 0x4303b1
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 0x4303e5
add esi, dword [esi + 8]
lea edx, [esi + eax]
push eax
push edx
push esi
call fcn.00415470
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4303f8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462e56
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x430396
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.0043f610
mov esi, dword [esi]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x430423
cmp eax, 0xc0000023
jne 0x430370
jmp 0x430423
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, edx
sub esi, eax
dec edx
cmp esi, edx
ja 0x430408
mov dword [ecx + 4], eax
jmp 0x430394
mov ecx, dword [ebp - 0x24]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
jbe 0x4304c6
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x44
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s_n
call fcn.0048cb70
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.0043f610
mov esi, dword [esi]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x430455
cmp eax, 0xc0000023
jne 0x430370
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.0043f610
mov esi, dword [esi]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push edi
push ebx
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x430487
cmp eax, 0xc0000023
jne 0x430370
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.0043f610
mov esi, dword [esi]
mov eax, ebx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x1c]
push esi
push 1
push edi
push eax
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0x80000005
je 0x430396
cmp eax, 0xc0000023
jne 0x430370
jmp 0x430396
mov dword [ebp - 0x24], eax
push eax
call fcn.00462617
add esp, 4
jmp 0x43039d
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x28
jmp 0x430414
call fcn.0042f8d0
test al, al
jne 0x4301d0
xor ebx, ebx
jmp 0x43039d