Function at 0x40c820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a642
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x567680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x83c], eax
or edi, 0xffffffff
cmp dword [0x568b50], 0
mov dword [ebp - 4], 0
je 0x40c926
cmp dword [0x568b54], 0
je 0x40c926
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x81c]
push 0x568b78
push eax
call fcn.00402aa0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004026d0
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c8c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov ecx, dword [0x568b54]
push 0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.00422880
push dword [ebp - 0x818]
lea ecx, [ebp + 8]
call fcn.004027d0
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c926
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5671f0]
xor ebx, ebx
cmp byte [0x568b58], bl
mov ecx, 0x5671f0
sete bl
add ebx, 0x80000001
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x828], eax
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 3
je 0x40c9c3
cmp byte [0x56203c], 0
jne 0x40c9c3
mov eax, dword [0x568bc0]
cmp dword [eax - 0xc], 0
jne 0x40c972
mov ebx, SysReAllocStringLen
jmp 0x40c9c3
push 0x51a434
lea eax, [ebp - 0x81c]
push 0x568bc0
push eax
mov ebx, SysReAllocStringLen
call fcn.00402b60
add esp, 0xc
push eax
lea ecx, [ebp - 0x828]
mov byte [ebp - 4], 4
call fcn.004026d0
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c9c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
mov byte [ebp - 4], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov eax, str.Software_
mov byte [ebp - 4], 6
test eax, 0xffff0000
jne 0x40ca2c
movzx esi, ax
push 0
push esi
call fcn.00403090
add esp, 8
test eax, eax
je 0x40ca3c
push esi
push eax
lea ecx, [ebp - 0x814]
call fcn.004082e0
jmp 0x40ca3c
push str.Software_
lea ecx, [ebp - 0x814]
call fcn.004027d0
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x818]
push eax
mov byte [ebp - 4], 7
call fcn.00402aa0
push 0x568b98
push eax
lea eax, [ebp - 0x820]
push eax
mov byte [ebp - 4], 8
call fcn.00402aa0
push 0x51a434
push eax
lea eax, [ebp - 0x824]
push eax
mov byte [ebp - 4], 9
call fcn.00402b60
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x81c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00402aa0
add esp, 0x30
lea ecx, [ebp - 0x838]
push 1
push dword [eax]
push ebx
call fcn.0040e350
mov edx, dword [ebp - 0x81c]
test eax, eax
setne bl
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cad2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x824]
add edx, 0xfffffff0
mov byte [ebp - 4], 9
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40caf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x820]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cb18
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cb3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cb5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x40cb6f
mov esi, dword [ebp - 0x838]
xor bl, bl
jmp 0x40cd9c
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push eax
mov dword [ebp - 0x82c], 0x400
call fcn.004eaaf0
mov esi, dword [ebp - 0x838]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x820], ebx
call fcn.0040fd70
test al, al
jne 0x40cbb9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x568ad4], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x820]
mov ebx, eax
mov dword [ebp - 0x824], ebx
test ebx, ebx
je 0x40cbf5
cmp ebx, 0x103
jne 0x40cd7f
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x814], esi
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 0xb
test eax, 0xffff0000
jne 0x40ce09
movzx ebx, ax
push 0
push ebx
call fcn.00403090
add esp, 8
test eax, eax
je 0x40cc45
push ebx
push eax
lea ecx, [ebp - 0x814]
call fcn.004082e0
mov esi, dword [ebp - 0x814]
mov ebx, dword [ebp - 0x824]
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 0xc
je 0x40cd3c
cmp dword [0x568b50], 0
je 0x40cd24
cmp dword [0x568b54], 0
je 0x40cd24
mov eax, dword [0x5671f0]
mov ecx, 0x5671f0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
push esi
lea ecx, [ebp - 0x81c]
mov byte [ebp - 4], 0xd
call fcn.00401b10
mov ecx, dword [0x568b50]
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00421fa0
push 0x51707c
push dword [0x568b78]
lea ecx, [ebp - 0x818]
call fcn.00408690
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x814]
call fcn.004026d0
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cd01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x818]
add edx, 0xfffffff0
mov byte [ebp - 4], 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cd24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x83c]
lea eax, [ebp - 0x814]
push eax
call fcn.00414870
mov esi, dword [ebp - 0x814]
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
mov dword [ebp - 0x82c], 0x400
call fcn.004eaaf0
add esi, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cd79
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x838]
test ebx, ebx
mov ebx, dword [ebp - 0x820]
je 0x40cba5
test esi, esi
je 0x40cd9a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov bl, 1
test esi, esi
je 0x40cda7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x828]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40cdca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x40cdeb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e9514
mov esp, ebp
pop ebp
ret
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce10
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.0040b9d0
mov esi, dword [ebp - 0x814]
jmp 0x40cc4b