Function at 0x402020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4426ed
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x459004]
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, edx
mov dword [ebp - 0x2c], edi
mov esi, ecx
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], esi
push eax
push 0
push 0
push 2
push str.Path
push 0
push edi
mov dword [0x45b900], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x4020bc
push edi
mov dword [0x45b900], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x451304
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00409b40
jmp 0x402265
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x34]
shr edx, 1
jne 0x4020eb
mov dword [ebp - 0x18], edx
mov word [ebp + edx*2 - 0x28], ax
jmp 0x402122
cmp edx, 7
ja 0x40210f
xor eax, eax
mov dword [ebp - 0x18], edx
mov ecx, edx
lea edi, [ebp - 0x28]
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x2c]
xor eax, eax
mov word [ebp + edx*2 - 0x28], ax
jmp 0x402122
push 0
push edx
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
push edx
call fcn.00409c30
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 2
push str.Path
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x4021be
push edi
mov dword [0x45b900], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov ecx, esi
push 0
movups xmmword [esi], xmm0
push 0x451304
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00409b40
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x402265
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4021af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402282
push ecx
push edx
call fcn.0040a3d8
add esp, 8
jmp 0x402265
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x18]
shr ecx, 1
dec ecx
mov dword [ebp - 0x38], edi
cmp ecx, edi
ja 0x4021e4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x402240
mov eax, dword [ebp - 0x14]
mov edx, ecx
sub edx, edi
sub eax, edi
cmp edx, eax
ja 0x40222d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
lea eax, [eax + edi*2]
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x40221f
mov edi, dword [ebp - 0x2c]
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
lea eax, [edi + edx]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x402240
push 0
push edx
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x30]
push edx
call fcn.00409c30
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
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.0040a3ca
mov esp, ebp
pop ebp
ret
call fcn.0042731b
int3