Function at 0x42ce00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b66a5
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4d57fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
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 - 0xc0], esi
mov dword [ebp - 0xb4], 0
cmp dword [edi + 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x8c], esi
je 0x42d375
xor ecx, ecx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], cx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.0042d3a0
add esp, 0xc
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x2c], 8
lea edx, [ebp - 0x90]
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push edx
cmovae eax, dword [ebp - 0x58]
push 0
push 0
push 0x20
push ecx
push eax
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x42cef1
cmp eax, 0xea
je 0x42cef1
push str.Failed_to_get_registry_value_size
jmp 0x42d37a
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x91]
inc eax
push ecx
shr eax, 1
lea ecx, [ebp - 0xac]
push eax
call fcn.0042bf80
mov edx, dword [ebp - 0xac]
lea esi, [ebp - 0x90]
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0x40]
sub eax, edx
mov byte [ebp - 4], 3
sar eax, 1
push esi
add eax, eax
cmp dword [ebp - 0x2c], 8
push edx
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 8
push 0
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0x20
push ecx
push eax
push dword [edi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov esi, dword [ebp - 0x8c]
test eax, eax
je 0x42cfa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0041b490
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 4
push str.Failed_to_read_registry_value__error
push eax
call fcn.00419ce0
add esp, 0x14
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.0041a290
push 0x4ce944
lea eax, [ebp - 0x1c]
jmp 0x42d390
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0xac]
shr eax, 1
push eax
call fcn.0042e330
mov edx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov word [ebp - 0x28], ax
mov edi, 7
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xbc], edx
cmp edx, eax
je 0x42cffb
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00408a50
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov byte [ebp - 4], 6
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
xor edx, edx
mov dword [ebp - 0xb4], 1
test ecx, ecx
mov dword [ebp - 0x98], edx
mov ecx, dword [ebp - 0x28]
je 0x42d25e
cmp edi, 8
lea eax, [ebp - 0x28]
cmovae eax, ecx
cmp word [eax + edx*2], 0
je 0x42d25e
cmp edi, 8
mov dword [ebp - 0x70], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x60], 0
cmovae eax, ecx
mov dword [ebp - 0x5c], 7
lea edx, [eax + edx*2]
xor eax, eax
mov ecx, edx
mov word [ebp - 0x70], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d070
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00408a50
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
cmp eax, dword [esi + 8]
je 0x42d141
mov edi, dword [ebp - 0x70]
mov esi, eax
mov eax, dword [ebp - 0x5c]
cmp eax, 8
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x60]
cmovae ecx, edi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb0], eax
cmp eax, 8
jae 0x42d0e5
movups xmm0, xmmword [ecx]
mov eax, 7
movups xmmword [esi], xmm0
jmp 0x42d129
or eax, 7
mov ecx, 0x7ffffffe
cmp eax, 0x7ffffffe
cmova eax, ecx
mov ecx, esi
mov dword [ebp - 0xa0], eax
inc eax
push eax
call fcn.00408880
mov ecx, dword [ebp - 0xb0]
mov dword [esi], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0xb8]
push eax
call fcn.00463e60
mov eax, dword [ebp - 0xa0]
add esp, 0xc
mov ecx, dword [ebp - 0xb0]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x8c]
add dword [eax + 4], 0x18
jmp 0x42d156
push ecx
push eax
mov ecx, esi
call fcn.0042b740
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x70]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x18]
cmovae edx, ecx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xa0], edx
cmp eax, esi
jae 0x42d21b
mov ecx, esi
lea edx, [edx + eax*2]
mov esi, 0
sub ecx, eax
je 0x42d1a4
movzx eax, word [edx]
test ax, ax
je 0x42d1a2
cmp ecx, 1
je 0x42d1a4
movzx eax, word [edx + 2]
add edx, 2
dec ecx
test ax, ax
jne 0x42d190
mov esi, edx
test esi, esi
je 0x42d218
sub esi, dword [ebp - 0xa0]
sar esi, 1
cmp esi, 0xffffffff
je 0x42d218
mov eax, dword [ebp - 0x9c]
lea edx, [esi + 1]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x42d202
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x42d1f2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d396
push ecx
push edi
call fcn.00461556
mov edx, dword [ebp - 0x98]
add esp, 8
mov esi, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x28]
cmp edx, dword [ebp - 0x18]
jae 0x42d25e
mov edi, dword [ebp - 0x14]
jmp 0x42d030
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x9c]
cmp eax, 8
jb 0x42d258
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x42d24b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d396
push ecx
push edi
call fcn.00461556
mov ecx, dword [ebp - 0x28]
add esp, 8
mov esi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42d295
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d28b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d396
push edx
push ecx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0xbc]
test edx, edx
je 0x42d2d2
mov ecx, dword [ebp - 0xa4]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x42d2c8
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d396
push ecx
push edx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42d30c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d302
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d396
push edx
push ecx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x42d356
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d34c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d396
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
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 - 0xac]
call fcn.0041ce80
push 0x4ce944
lea eax, [ebp - 0xac]
push eax
call fcn.00463df0
call fcn.0046d841
int3