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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee8ec
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x53451c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00478a90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0046f040
call fcn.004069f0
mov ecx, eax
test ecx, ecx
je 0x4281c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x42c]
call fcn.00407ff0
test al, al
jne 0x428028
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428006
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00407a00
mov dword [ebp - 4], 1
call fcn.004069f0
mov ecx, eax
test ecx, ecx
je 0x4281ca
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push str.clean_beta
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.00407ff0
test al, al
jne 0x428076
push 0xa
push str.clean_beta
lea ecx, [ebp - 0x428]
call fcn.00407a00
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00459410
mov edx, dword [ebp - 0x428]
or esi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4280bb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov eax, esi
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4280df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x424]
cmp dword [eax - 0xc], 0
jne 0x4280f3
lea edx, [eax - 0x10]
jmp 0x428194
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00478a90
add esp, 0xc
mov dword [ebp - 0x434], 1
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x434]
push eax
push 0x4fc414
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsdidawp.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42818b
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42818b
push str.config.set
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
push str.verinfo
push str.general
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4281a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046ba88
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004062a0
push 0x80004005
call fcn.004062a0
int3