Function at 0x40a7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462802
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x47b040]
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, ecx
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40aaec
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
mov eax, dword [0x47e038]
test al, 1
jne 0x40a840
or eax, 1
mov dword [0x47e038], eax
push 0x68
push 0
push 0x47dfd0
mov byte [ebp - 4], 1
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
add esp, 4
mov byte [ebp - 4], 0
push dword [0x47e020]
lea eax, [ebp - 0x424]
push str.CLSID_sInprocServer32
push eax
call fcn.00406780
add esp, 0xc
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x44c], 0
call fcn.0041bc30
cmp dword [0x47dfc4], 0
mov ecx, 0x101
mov esi, dword [ebp - 0x424]
mov eax, 0x201
cmovne eax, ecx
lea ecx, [ebp - 0x44c]
push ecx
push eax
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40aaaf
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0043a680
add esp, 0xc
mov dword [ebp - 0x42c], 0x208
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push 0
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x44c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40aaaf
mov eax, dword [0x47e038]
test al, 1
jne 0x40a940
or eax, 1
mov dword [0x47e038], eax
push 0x68
push edi
push 0x47dfd0
mov byte [ebp - 4], 2
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
add esp, 4
mov byte [ebp - 4], 0
mov edi, dword [0x47e01c]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.0043a680
add esp, 0xc
cmp dword [ebx + 0x14], 7
jbe 0x40a964
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x218]
push 0x4708d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x448]
call fcn.00407e10
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x448]
call fcn.0040ab20
test eax, eax
jne 0x40aa52
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x40aaf6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x448]
cmp dword [ebp - 0x434], 7
cmova eax, dword [ebp - 0x448]
push eax
lea eax, [ebp - 0x428]
push 0x470b14
push eax
call fcn.00406780
mov edi, dword [ebp - 0x428]
lea ecx, [ebp - 0x450]
add esp, 8
push edi
call fcn.0040de80
mov edx, dword [ebp - 0x450]
or ebx, 0xffffffff
add esp, 8
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40aa37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40aa52
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x434]
cmp ecx, 7
jbe 0x40aa92
mov edx, dword [ebp - 0x448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40aa88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab00
push ecx
push edx
call fcn.00438aa2
add esp, 8
xor eax, eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40aace
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.00438436
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022c0
push 0x80004005
call fcn.004022c0
call fcn.00442b30
int3