Function at 0x42cb60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b6610
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4d57fc]
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 edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], esi
cmp dword [edi + 0x14], 0
je 0x42cdd3
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.0042d3a0
add esp, 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push edx
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 2
push ecx
push eax
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x42cc2e
cmp eax, 0xea
je 0x42cc2e
push str.Failed_to_get_registry_value_size
jmp 0x42cdd8
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x75]
inc eax
push ecx
shr eax, 1
lea ecx, [ebp - 0x84]
push eax
call fcn.0042bf80
mov edx, dword [ebp - 0x84]
lea ebx, [ebp - 0x74]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x28]
sub eax, edx
mov byte [ebp - 4], 2
sar eax, 1
push ebx
add eax, eax
cmp dword [ebp - 0x14], 8
push edx
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push ecx
push eax
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x42ccce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041b490
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push str.Failed_to_read_registry_value__error
push eax
call fcn.00419ce0
add esp, 0x14
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
call fcn.0041a290
push 0x4ce944
lea eax, [ebp - 0x90]
jmp 0x42cdee
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x84]
shr eax, 1
push eax
call fcn.0042e330
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
cmp edx, ecx
je 0x42ccfa
cmp word [ecx - 2], 0
lea eax, [ecx - 2]
cmove ecx, eax
mov dword [ebp - 0x80], ecx
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, ecx
je 0x42cd24
sub ecx, edx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408a50
lea ecx, [ebp - 0x84]
call fcn.00410a50
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42cd69
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42cd5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42cdf4
push edx
push ecx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x42cdb3
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42cda9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42cdf4
push edx
push ecx
call fcn.00461556
add esp, 8
mov eax, esi
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.00461564
mov esp, ebp
pop ebp
ret 8
push str.Registry_root_key_handle_is_null
lea ecx, [ebp - 0x84]
call fcn.0041ce80
push 0x4ce944
lea eax, [ebp - 0x84]
push eax
call fcn.00463df0
call fcn.0046d841
int3