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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517962
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5746cc]
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 esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x430], 4
push eax
lea eax, [ebp - 0x430]
mov dword [ebp - 0x434], 0
push eax
push 0x5305a8
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathshalowp.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, 1
mov dword [ebp - 0x42c], 4
call esi
test eax, eax
jne 0x42c84d
cmp dword [ebp - 0x434], edi
je 0x42cae2
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a3360
add esp, 0xc
mov dword [ebp - 0x430], edi
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x430]
push eax
push 0x52bfd4
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathshalowp.exe
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x42cae2
push str.halowp.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42cae2
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push dword [0x577df0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00409b50
mov ecx, eax
test ecx, ecx
je 0x42cb00
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], 0
call fcn.00409b50
mov ecx, eax
test ecx, ecx
je 0x42cb0a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x424]
call fcn.0040b400
test al, al
jne 0x42c982
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c960
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040ab90
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004095b0
mov edx, dword [ebp - 0x424]
or ebx, 0xffffffff
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c9c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00409b50
mov ecx, eax
test ecx, ecx
je 0x42cb14
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov byte [ebp - 4], 3
call fcn.00409b50
mov ecx, eax
test ecx, ecx
je 0x42cb1e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x424]
call fcn.0040b400
test al, al
jne 0x42ca43
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ca21
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.0040ab90
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.004095b0
mov edx, dword [ebp - 0x424]
add esp, 8
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42ca7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x438]
mov esi, dword [ebp - 0x428]
push edi
push esi
call fcn.0041ca80
xor edx, edx
add esp, 8
test eax, eax
mov byte [ebp - 4], dl
mov ecx, 1
mov eax, ebx
cmovs ecx, edx
add esi, 0xfffffff0
mov dword [ebp - 0x428], ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42cac0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x42cadc
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov edi, dword [ebp - 0x428]
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 - 0x10]
xor ecx, ebp
call fcn.004864b8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00409360
push 0x80004005
call fcn.00409360
push 0x80004005
call fcn.00409360
push 0x80004005
call fcn.00409360
int3