Function at 0x40ce10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x47b040]
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 0x40d133
mov eax, dword [0x47e038]
mov dword [ebp - 0x228], 0
test al, 1
jne 0x40cea2
or eax, 1
mov dword [0x47e038], eax
push 0x68
push 0
push 0x47dfd0
mov dword [ebp - 4], 0
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
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 [0x47dfe4]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40cf3a
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0043a680
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 0x40cfd6
mov eax, dword [0x47e038]
test al, 1
jne 0x40cf7c
or eax, 1
mov dword [0x47e038], eax
push 0x68
push 0
push 0x47dfd0
mov dword [ebp - 4], 1
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x228]
push eax
push 0xf003f
push 0
push dword [0x47dfe8]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40cfd1
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0043a680
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 0x40cef8
push 0x46f490
lea ecx, [ebp - 0x24c]
call fcn.00407e10
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebx + 0x120]
call fcn.00408b70
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x40d033
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d029
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d1b8
push ecx
push edx
call fcn.00438aa2
add esp, 8
cmp dword [ebx + 0x130], 0
jne 0x40d133
mov eax, dword [0x47e038]
test al, 1
jne 0x40d082
or eax, 1
mov dword [0x47e038], eax
push 0x68
push 0
push 0x47dfd0
mov dword [ebp - 4], 2
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x47dfdc]
add ecx, 0xfffffff0
call fcn.004064a0
add eax, 0x10
mov dword [ebp - 0x220], eax
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 3
call fcn.0040e470
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x22c]
mov edx, esi
call fcn.0041c000
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 0x40d0d0
sub edx, dword [ebp - 0x224]
sar edx, 1
push edx
push ecx
lea ecx, [ebx + 0x120]
call fcn.00408a60
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 0x40d117
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 0x40d133
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x134], 7
lea esi, [ebx + 0x120]
jbe 0x40d144
mov esi, dword [esi]
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40d1bd
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.004062e0
test al, al
jne 0x40d198
test esi, esi
jne 0x40d174
xor ecx, ecx
jmp 0x40d18f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d180
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.004065f0
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.00438436
mov esp, ebp
pop ebp
ret 4
call fcn.00442b30
push 0x80004005
call fcn.004022c0
int3