Function at 0x40c300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x47a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x230], edi
cmp dword [ebx + 0x130], 0
jne 0x40c623
mov eax, dword [0x47cfec]
mov dword [ebp - 0x228], 0
test al, 1
jne 0x40c392
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push 0
push 0x47cf88
mov dword [ebp - 4], 0
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x228]
push eax
push 0xf003f
push 0
push dword [0x47cf9c]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40c42a
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00439ab0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x228]
mov dword [ebp - 0x224], 0x208
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0
push eax
jmp 0x40c4c6
mov eax, dword [0x47cfec]
test al, 1
jne 0x40c46c
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push 0
push 0x47cf88
mov dword [ebp - 4], 1
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x228]
push eax
push 0xf003f
push 0
push dword [0x47cfa0]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40c4c1
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00439ab0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.Path
jmp 0x40c3e8
push 0x46e470
lea ecx, [ebp - 0x24c]
call fcn.00407280
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebx + 0x120]
call fcn.00408060
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x40c523
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c519
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c6a8
push ecx
push edx
call fcn.00437f52
add esp, 8
cmp dword [ebx + 0x130], 0
jne 0x40c623
mov eax, dword [0x47cfec]
test al, 1
jne 0x40c572
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push 0
push 0x47cf88
mov dword [ebp - 4], 2
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x47cf94]
add ecx, 0xfffffff0
call fcn.00405cd0
add eax, 0x10
mov dword [ebp - 0x220], eax
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 3
call fcn.0040d960
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x22c]
mov edx, esi
call fcn.0041b4b0
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x224], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c5c0
sub edx, dword [ebp - 0x224]
sar edx, 1
push edx
push ecx
lea ecx, [ebx + 0x120]
call fcn.00407f50
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c607
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40c623
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x134], 7
lea esi, [ebx + 0x120]
jbe 0x40c634
mov esi, dword [esi]
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x40c6ad
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 5
call fcn.00405690
test al, al
jne 0x40c688
test esi, esi
jne 0x40c664
xor ecx, ecx
jmp 0x40c67f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c670
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004058c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004378e6
mov esp, ebp
pop ebp
ret 4
call fcn.00441fe0
push 0x80004005
call fcn.00401920
int3