Function at 0x4328f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x53d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [0x54c5d0], 0
je 0x432c30
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 eax, 0x18
mov dword [ebp - 0x1c], eax
push eax
call fcn.0049a900
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea ecx, [eax + 0x18]
mov dword [ebp - 0x20], ecx
test eax, eax
je 0x432c1f
mov byte [eax], 0
cmp eax, 0xffffffff
je 0x432c1f
mov byte [eax + 1], 0
cmp eax, 0xfffffffe
je 0x432c1f
mov byte [eax + 2], 0
cmp eax, 0xfffffffd
je 0x432c1f
mov byte [eax + 3], 0
cmp eax, 0xfffffffc
je 0x432c1f
mov byte [eax + 4], 0
cmp eax, 0xfffffffb
je 0x432c1f
mov byte [eax + 5], 0
cmp eax, 0xfffffffa
je 0x432c1f
mov byte [eax + 6], 0
cmp eax, 0xfffffff9
je 0x432c1f
mov byte [eax + 7], 0
cmp eax, 0xfffffff8
je 0x432c1f
mov byte [eax + 8], 0
cmp eax, 0xfffffff7
je 0x432c1f
mov byte [eax + 9], 0
cmp eax, 0xfffffff6
je 0x432c1f
mov byte [eax + 0xa], 0
cmp eax, 0xfffffff5
je 0x432c1f
mov byte [eax + 0xb], 0
cmp eax, 0xfffffff4
je 0x432c1f
mov byte [eax + 0xc], 0
cmp eax, 0xfffffff3
je 0x432c1f
mov byte [eax + 0xd], 0
cmp eax, 0xfffffff2
je 0x432c1f
mov byte [eax + 0xe], 0
cmp eax, 0xfffffff1
je 0x432c1f
mov byte [eax + 0xf], 0
cmp eax, 0xfffffff0
je 0x432c1f
mov byte [eax + 0x10], 0
cmp eax, 0xffffffef
je 0x432c1f
mov byte [eax + 0x11], 0
cmp eax, 0xffffffee
je 0x432c1f
mov byte [eax + 0x12], 0
cmp eax, 0xffffffed
je 0x432c1f
mov byte [eax + 0x13], 0
cmp eax, 0xffffffec
je 0x432c1f
mov byte [eax + 0x14], 0
cmp eax, 0xffffffeb
je 0x432c1f
mov byte [eax + 0x15], 0
cmp eax, 0xffffffea
je 0x432c1f
mov byte [eax + 0x16], 0
cmp eax, 0xffffffe9
je 0x432c1f
mov edi, dword [ebp + 8]
mov byte [eax + 0x17], 0
lea esi, [ebp - 0x28]
mov dword [esi + 4], ecx
mov ebx, 0x18
mov ecx, esi
push ebx
call fcn.004538e0
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 0x432afa
cmp eax, 0xc0000023
je 0x432afa
test eax, eax
js 0x432af6
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 0x432b55
add esi, dword [esi + 8]
lea edx, [esi + eax]
push eax
push edx
push esi
call fcn.00418c40
mov bl, 1
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x432b2a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b483
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x432adb
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.004538e0
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 0x432b6b
cmp eax, 0xc0000023
jne 0x432ab1
jmp 0x432b6b
mov ecx, dword [ebp - 0x24]
mov edx, ecx
sub edx, eax
dec ecx
cmp edx, ecx
jbe 0x432c0e
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.004c59e0
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, edx
sub esi, eax
dec edx
cmp esi, edx
ja 0x432b3a
mov dword [ecx + 4], eax
jmp 0x432ad9
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.004538e0
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 0x432b9d
cmp eax, 0xc0000023
jne 0x432ab1
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.004538e0
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 0x432bcf
cmp eax, 0xc0000023
jne 0x432ab1
lea esi, [ebp - 0x28]
mov ecx, esi
push dword [ebp - 0x1c]
call fcn.004538e0
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 0x432adb
cmp eax, 0xc0000023
jne 0x432ab1
jmp 0x432adb
mov dword [ebp - 0x24], eax
push eax
call fcn.0049a930
add esp, 4
jmp 0x432ae2
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x28
jmp 0x432b46
call fcn.00432120
test al, al
jne 0x432910
xor ebx, ebx
jmp 0x432ae2