Function at 0x42e1c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8858
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x65afd4]
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 0x42e458
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x42e229
cmp eax, 2
jne 0x42e458
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
je 0x42e458
push ecx
inc eax
lea ecx, [ebp - 0x24]
push eax
call fcn.0042f0c0
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.0042f990
test eax, eax
jne 0x42e40c
mov esi, edi
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42e270
sub esi, ecx
mov ecx, dword [ebx + 0x14]
sar esi, 1
mov dword [ebp - 0x18], ecx
cmp esi, ecx
ja 0x42e2b6
mov dword [ebp - 0x14], ebx
mov eax, ebx
cmp ecx, 8
jb 0x42e298
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.005acee0
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x42e3a8
cmp esi, 0x7ffffffe
ja 0x42e46c
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x42e2d6
mov ebx, SysReAllocString
jmp 0x42e2f4
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x42e2ec
mov ebx, SysReAllocString
jmp 0x42e2f4
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x42e306
or ecx, 0xffffffff
jmp 0x42e30e
cmp ecx, 0x1000
jb 0x42e337
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00462143
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x42e471
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x42e348
test ecx, ecx
je 0x42e346
push ecx
call fcn.00462143
add esp, 4
jmp 0x42e348
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.005ac960
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 0x42e3a6
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x42e39c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e471
mov eax, edx
push ecx
push eax
call fcn.005a8d24
add esp, 8
mov dword [esi], ebx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x42e3f8
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x42e3d9
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e471
push ecx
push edi
call fcn.005a8d24
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 0x42e458
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x42e439
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42e476
push ecx
push edi
call fcn.005a8d24
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.00405425
call fcn.005b0079
call fcn.005b0079
int3