Function at 0x40ecc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512170
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x577680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
or esi, 0xffffffff
cmp dword [0x578c00], 0
mov dword [ebp - 4], 1
je 0x40ee44
cmp dword [0x578c04], 0
je 0x40ee44
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.004026b0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ed54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00425fe0
push dword [ebp - 0x1c]
lea ecx, [ebp + 8]
call fcn.004027b0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push 0x578c68
push eax
call fcn.00402a80
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.004026b0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40edcd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [0x578c04]
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.00425fe0
push dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
call fcn.004027b0
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ee24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ee44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5771f0]
xor ebx, ebx
cmp byte [0x578c08], bl
mov ecx, 0x5771f0
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x578ad4]
mov byte [ebp - 4], 6
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xa
idiv ecx
cmp edx, 7
jne 0x40ee90
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x578ad4], eax
cmp byte [ebp + 0x14], 0
je 0x40eef9
cmp byte [0x57203c], 0
jne 0x40eef9
mov eax, dword [0x578cd8]
cmp dword [eax - 0xc], 0
jne 0x40eeb1
mov ebx, SysReAllocStringLen
jmp 0x40eef9
push 0x52a1a0
lea eax, [ebp - 0x18]
push 0x578cd8
push eax
mov ebx, SysReAllocStringLen
call fcn.00402b40
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.004026b0
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40eef9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, dword [0x5771f0]
mov ecx, 0x5771f0
mov byte [ebp - 4], 8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.Software_
mov byte [ebp - 4], 9
test eax, 0xffff0000
jne 0x40ef53
movzx edi, ax
push 0
push edi
call fcn.00403070
add esp, 8
test eax, eax
je 0x40ef60
push edi
push eax
lea ecx, [ebp - 0x14]
call fcn.00408b00
jmp 0x40ef60
push str.Software_
lea ecx, [ebp - 0x14]
call fcn.004027b0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402a80
push 0x578c74
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xb
call fcn.00402a80
push 0x52a1a0
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xc
call fcn.00402b40
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xd
call fcn.00402a80
add esp, 0x30
lea ecx, [ebp - 0x40]
push 0x20019
push dword [eax]
push ebx
call fcn.0040faa0
mov edx, dword [ebp - 0x18]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40efe1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f001
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xb
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f021
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xa
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f061
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40f113
mov dword [ebp - 0x2c], 0
call fcn.00411740
test al, al
jne 0x40f0bf
mov eax, dword [str.Dfno4]
mov dword [ebp - 0x24], eax
mov ax, word [0x52a220]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f097
sub eax, edx
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ef820
push eax
call fcn.004f0683
add esp, 8
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x24], 4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f108
cmp dword [ebp - 0x28], 4
jne 0x40f108
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40f0fa
push edi
call ebx
xor edi, edi
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
mov dword [ecx], eax
mov byte [ebp - 0xd], 1
jmp 0x40f11a
test edi, edi
je 0x40f116
push edi
call ebx
xor edi, edi
jmp 0x40f116
mov edi, dword [ebp - 0x40]
mov byte [ebp - 0xd], 0
test edi, edi
je 0x40f121
push edi
call ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f141
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f161
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40f182
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret