Function at 0x45ba70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566c00
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5bf094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push 0x30
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x40], edi
call fcn.004b92c6
add esp, 4
cmp eax, edi
je 0x45bd00
mov dword [ebp - 0x44], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [eax + 8], eax
mov ecx, dword [ebp - 0x44]
mov byte [ecx + 0x2c], 1
mov edx, dword [ebp - 0x44]
mov byte [edx + 0x2d], 1
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edi
push 0x20
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
call fcn.00404000
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x4c]
push edi
mov eax, ebx
sub eax, esi
push edi
sar eax, 1
dec eax
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x30]
push edi
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
lea ecx, [ebp - 0x34]
push ecx
push esi
push edx
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x45bc08
mov eax, dword [ebp - 0x34]
add eax, eax
lea edi, [eax + 1]
mov dword [ebp - 0x34], eax
mov eax, ebx
sub eax, esi
sar eax, 1
cmp eax, edi
jbe 0x45bb61
lea edi, [esi + edi*2]
cmp edi, ebx
je 0x45bbdc
push 0
push ebx
push edi
call fcn.004b8d30
add esp, 0xc
mov ebx, edi
jmp 0x45bbd9
jae 0x45bbdc
mov ecx, edi
sub ecx, eax
mov edx, SysReAllocString
sub edx, ecx
cmp edx, eax
jb 0x45bc83
add eax, ecx
mov ecx, dword [ebp - 0x58]
sub ecx, esi
sar ecx, 1
cmp eax, ecx
jbe 0x45bbad
mov edx, ecx
shr edx, 1
mov esi, SysReAllocString
sub esi, edx
cmp esi, ecx
jae 0x45bb96
xor ecx, ecx
jmp 0x45bb98
add ecx, edx
cmp ecx, eax
jae 0x45bb9e
mov ecx, eax
push ecx
lea ecx, [ebp - 0x60]
call fcn.00402b20
mov ebx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov eax, ebx
sub eax, esi
sar eax, 1
mov ecx, edi
sub ecx, eax
mov dword [ebp - 0x68], ecx
je 0x45bbd6
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x68]
lea ebx, [ebx + ecx*2]
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x30]
push 0
lea edx, [ebp - 0x34]
push edx
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x45bb31
xor edi, edi
cmp eax, edi
jne 0x45bc63
xor edx, edx
mov eax, esi
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45bc21
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403510
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0045b8b0
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
cmp dword [ebp - 0x18], 8
jb 0x45bc6a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b8946
add esp, 4
jmp 0x45bc6a
cmp eax, 0x103
je 0x45bc8d
mov byte [ebp - 4], 0
cmp esi, edi
je 0x45bc7b
push esi
call fcn.004b8946
add esp, 4
inc dword [ebp - 0x30]
jmp 0x45bae0
push str.vector_T__too_long
call fcn.00469b17
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x48]
cmp ecx, eax
je 0x45bcaf
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov edx, dword [eax + 8]
mov dword [ebp - 0x40], edx
mov dword [eax + 8], ecx
cmp esi, edi
je 0x45bcbc
push esi
call fcn.004b8946
add esp, 4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ecx]
push ecx
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 5
call fcn.00459e50
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004b8946
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b92b7
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x50], edi
call fcn.004b912a
push 0x5a0f40
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], vtable.std::bad_alloc.0
call fcn.004b9346
int3