Function at 0x42e440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8f58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x65bfd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push str.version
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e6d8
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x42e4a9
cmp eax, 2
jne 0x42e6d8
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
je 0x42e6d8
push ecx
inc eax
lea ecx, [ebp - 0x24]
push eax
call fcn.0042f340
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x24]
mov ecx, esi
push eax
push edi
push str.version
call fcn.0042fc10
test eax, eax
jne 0x42e68c
mov esi, edi
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42e4f0
sub esi, ecx
mov ecx, dword [ebx + 0x14]
sar esi, 1
mov dword [ebp - 0x18], ecx
cmp esi, ecx
ja 0x42e536
mov dword [ebp - 0x14], ebx
mov eax, ebx
cmp ecx, 8
jb 0x42e518
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x10], esi
add esi, esi
push esi
push edi
push eax
call fcn.005ad520
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x42e628
cmp esi, 0x7ffffffe
ja 0x42e6ec
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x42e556
mov ebx, SysReAllocString
jmp 0x42e574
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x42e56c
mov ebx, SysReAllocString
jmp 0x42e574
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x42e586
or ecx, 0xffffffff
jmp 0x42e58e
cmp ecx, 0x1000
jb 0x42e5b7
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004627a8
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x42e6f1
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x42e5c8
test ecx, ecx
je 0x42e5c6
push ecx
call fcn.004627a8
add esp, 4
jmp 0x42e5c8
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ecx + 0x10], esi
add esi, esi
push esi
push edi
push eax
mov dword [ecx + 0x14], ebx
call fcn.005acfa0
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov word [esi + ebx], ax
mov esi, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42e626
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x42e61c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e6f1
mov eax, edx
push ecx
push eax
call fcn.005a9369
add esp, 8
mov dword [esi], ebx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42e678
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x42e659
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e6f1
push ecx
push edi
call fcn.005a9369
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42e6d8
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x42e6b9
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e6f6
push ecx
push edi
call fcn.005a9369
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00408030
call fcn.005b06b9
call fcn.005b06b9
int3