Function at 0x423470
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f58c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x57c8b4]
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.0040b790
mov ecx, eax
test ecx, ecx
je 0x423798
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
push str.__PID
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0
call fcn.0040ac20
test al, al
jne 0x423500
mov ecx, str.__PID
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4234e0
sub ecx, edx
sar ecx, 1
push ecx
push str.__PID
lea ecx, [ebp - 0x424]
call fcn.0040a4c0
lea esi, [ebx + 0x24]
mov dword [ebp - 4], 1
push esi
lea eax, [ebp - 0x424]
mov ecx, ebx
push eax
call fcn.004212f0
mov edx, dword [ebp - 0x424]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423540
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4235d8
lea eax, [ebp - 0x424]
mov ecx, ebx
push eax
call fcn.004214d0
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.004119e0
mov edx, dword [ebp - 0x424]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42358d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4235d8
push 0xd0
lea ecx, [ebp - 0x424]
call fcn.004081b0
push eax
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.004119e0
mov edx, dword [ebp - 0x424]
mov eax, edi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4235d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
mov dword [ebp - 0x430], 1
lea eax, [ebp - 0x424]
mov dword [ebp - 0x42c], 0x104
lea ecx, [ebp - 0x425]
push eax
call fcn.00420ff0
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x430]
push ecx
push 0x535c84
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x424]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423658
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp word [ebp - 0x218], 0
je 0x4236a0
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x425]
call fcn.004211a0
push dword [eax]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x424]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4236a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423773
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a99f0
add esp, 0xc
mov dword [ebp - 0x438], 1
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x434], 0x104
lea ecx, [ebp - 0x425]
push eax
call fcn.00420ef0
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x438]
push ecx
push 0x535958
push dword [eax]
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edx, dword [ebp - 0x43c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x423733
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423740
sub ecx, edx
sar ecx, 1
je 0x42377c
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebx + 0x14]
call fcn.0040a4c0
lea ecx, [ebx + 0x14]
call fcn.0041f8b0
lea ecx, [ebx + 0x14]
call fcn.0041f7b0
jmp 0x42377c
push esi
lea ecx, [ebx + 0x14]
call fcn.004119e0
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.00490238
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408b70
int3