Function at 0x409ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461b02
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x47a040]
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.00404660
mov ecx, eax
test ecx, ecx
je 0x409fdc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
mov eax, dword [0x47cfec]
test al, 1
jne 0x409d30
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push 0
push 0x47cf88
mov byte [ebp - 4], 1
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov byte [ebp - 4], 0
push dword [0x47cfd4]
lea eax, [ebp - 0x424]
push str.CLSID_sInprocServer32
push eax
call fcn.00405a50
add esp, 0xc
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x44c], 0
call fcn.0041b0e0
cmp dword [0x47cf7c], 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 0x409f9f
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00439ab0
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 0x409f9f
mov eax, dword [0x47cfec]
test al, 1
jne 0x409e30
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push edi
push 0x47cf88
mov byte [ebp - 4], 2
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov byte [ebp - 4], 0
mov edi, dword [0x47cfd0]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.00439ab0
add esp, 0xc
cmp dword [ebx + 0x14], 7
jbe 0x409e54
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x218]
push 0x46f4f8
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.00407280
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x448]
call fcn.0040a010
test eax, eax
jne 0x409f42
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x409fe6
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 0x46f774
push eax
call fcn.00405a50
mov edi, dword [ebp - 0x428]
lea ecx, [ebp - 0x450]
add esp, 8
push edi
call fcn.0040d370
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 0x409f27
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 0x409f42
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 0x409f82
mov edx, dword [ebp - 0x448]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409f78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ff0
push ecx
push edx
call fcn.00437f52
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 0x409fbe
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.004378e6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401920
push 0x80004005
call fcn.00401920
call fcn.00441fe0
int3