Function at 0x4396c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x557008]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x56b050], 0
je 0x4399f8
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.004a8ae0
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 0x4399e7
mov byte [eax], 0
cmp eax, 0xffffffff
je 0x4399e7
mov byte [eax + 1], 0
cmp eax, 0xfffffffe
je 0x4399e7
mov byte [eax + 2], 0
cmp eax, 0xfffffffd
je 0x4399e7
mov byte [eax + 3], 0
cmp eax, 0xfffffffc
je 0x4399e7
mov byte [eax + 4], 0
cmp eax, 0xfffffffb
je 0x4399e7
mov byte [eax + 5], 0
cmp eax, 0xfffffffa
je 0x4399e7
mov byte [eax + 6], 0
cmp eax, 0xfffffff9
je 0x4399e7
mov byte [eax + 7], 0
cmp eax, 0xfffffff8
je 0x4399e7
mov byte [eax + 8], 0
cmp eax, 0xfffffff7
je 0x4399e7
mov byte [eax + 9], 0
cmp eax, 0xfffffff6
je 0x4399e7
mov byte [eax + 0xa], 0
cmp eax, 0xfffffff5
je 0x4399e7
mov byte [eax + 0xb], 0
cmp eax, 0xfffffff4
je 0x4399e7
mov byte [eax + 0xc], 0
cmp eax, 0xfffffff3
je 0x4399e7
mov byte [eax + 0xd], 0
cmp eax, 0xfffffff2
je 0x4399e7
mov byte [eax + 0xe], 0
cmp eax, 0xfffffff1
je 0x4399e7
mov byte [eax + 0xf], 0
cmp eax, 0xfffffff0
je 0x4399e7
mov byte [eax + 0x10], 0
cmp eax, 0xffffffef
je 0x4399e7
mov byte [eax + 0x11], 0
cmp eax, 0xffffffee
je 0x4399e7
mov byte [eax + 0x12], 0
cmp eax, 0xffffffed
je 0x4399e7
mov byte [eax + 0x13], 0
cmp eax, 0xffffffec
je 0x4399e7
mov byte [eax + 0x14], 0
cmp eax, 0xffffffeb
je 0x4399e7
mov byte [eax + 0x15], 0
cmp eax, 0xffffffea
je 0x4399e7
mov byte [eax + 0x16], 0
cmp eax, 0xffffffe9
je 0x4399e7
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.00463640
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 0x4398c5
cmp eax, 0xc0000023
je 0x4398c5
test eax, eax
js 0x4398c1
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 0x4398f5
add esi, dword [esi + 8]
lea edx, [esi + eax]
push eax
push edx
push esi
call fcn.0041d190
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x439908
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a927c
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4398a6
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.00463640
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 0x439933
cmp eax, 0xc0000023
jne 0x439880
jmp 0x439933
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, edx
sub esi, eax
dec edx
cmp esi, edx
ja 0x439918
mov dword [ecx + 4], eax
jmp 0x4398a4
mov ecx, dword [ebp - 0x24]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
jbe 0x4399d6
push str.null_pointer_given_to_destroy_at
push str.__loc___nullptr
push 0x41
push str....._third_partylibc_srcinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s_n
call fcn.004d6920
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.00463640
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 0x439965
cmp eax, 0xc0000023
jne 0x439880
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.00463640
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 0x439997
cmp eax, 0xc0000023
jne 0x439880
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.00463640
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 0x4398a6
cmp eax, 0xc0000023
jne 0x439880
jmp 0x4398a6
mov dword [ebp - 0x24], eax
push eax
call fcn.004a8b10
add esp, 4
jmp 0x4398ad
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
jmp 0x439924
call fcn.00438f10
test al, al
jne 0x4396e0
xor ebx, ebx
jmp 0x4398ad