Function at 0x40c3f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57654d
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x628f58]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x824], ebx
call fcn.00411e7c
mov ecx, eax
test ecx, ecx
je 0x40c69f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
push 0x604e98
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.00403fb0
test al, al
jne 0x40c471
push 0x28
push 0x604e98
lea ecx, [ebp - 0x818]
call fcn.00404140
mov dword [ebp - 4], 1
call fcn.00411e7c
mov ecx, eax
test ecx, ecx
je 0x40c6a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push str.InstallPath
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 2
call fcn.00403fb0
test al, al
jne 0x40c4bf
push 0xb
push str.InstallPath
lea ecx, [ebp - 0x814]
call fcn.00404140
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x818]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x820], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c579
call fcn.00411e7c
mov ecx, eax
test ecx, ecx
je 0x40c6b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x604db0
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00403fb0
test al, al
jne 0x40c530
push 0
push 0x604db0
mov ecx, ebx
call fcn.00404140
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x814]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c554
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40c67f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40c67f
mov edi, dword [ebp - 0x814]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x81c]
test eax, eax
je 0x40c5e9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00411e7c
mov ecx, eax
test ecx, ecx
je 0x40c6bd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x604db0
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00403fb0
test al, al
jne 0x40c645
push 0
push 0x604db0
jmp 0x40c63e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00411e7c
mov ecx, eax
test ecx, ecx
je 0x40c6c7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00403fb0
test al, al
jne 0x40c645
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c627
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00404140
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c663
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40c67f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.0054a576
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404450
push 0x80004005
call fcn.00404450
push 0x80004005
call fcn.00404450
push 0x80004005
call fcn.00404450
push 0x80004005
call fcn.00404450
int3