Function at 0x471850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3d0c
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x4fe0c0]
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
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x43c], ebx
mov esi, dword [0x51345c]
mov dword [ebp - 0x424], 0
test esi, esi
je 0x4718aa
lock inc dword [esi + 4]
mov esi, dword [0x51345c]
mov ecx, dword [0x513458]
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], esi
mov dword [ebp - 4], 0
lea edx, [ebp - 0x428]
mov eax, dword [ecx]
push edx
call dword [eax + 0x30]
or edi, 0xffffffff
mov byte [ebp - 4], 2
test esi, esi
je 0x4718f9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4718f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4718f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x424]
push eax
push 0x201
push 0
push dword [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4719e6
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0049e870
add esp, 0xc
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
call fcn.00404dd0
mov ecx, eax
test ecx, ecx
je 0x471b80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.00404730
test al, al
jne 0x471b10
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4719c3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.004049e0
jmp 0x471b10
mov esi, dword [0x51345c]
test esi, esi
je 0x4719fa
lock inc dword [esi + 4]
mov esi, dword [0x51345c]
mov ecx, dword [0x513458]
mov dword [ebp - 0x440], ecx
mov dword [ebp - 0x43c], esi
mov byte [ebp - 4], 4
lea edx, [ebp - 0x430]
mov eax, dword [ecx]
push edx
call dword [eax + 0x34]
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.004031f0
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x430]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471a4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
test esi, esi
je 0x471a74
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x471a74
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x471a74
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x424]
push eax
push 0x201
push 0
push dword [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x471b34
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0049e870
add esp, 0xc
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.Path
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], 0
push eax
mov ecx, ebx
call fcn.00404b00
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x471b62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x471b62
push 0x4e3458
mov ecx, ebx
call fcn.00404b00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x471b62
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 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.0049cdfb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404bb0
int3