Function at 0x427700
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acede
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x624394]
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 edi, ecx
mov dword [ebp - 0x630], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x654], edi
mov dword [edi], 0
call fcn.00421560
mov ecx, eax
test ecx, ecx
jne 0x427768
push 0x80004005
call fcn.004212c0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x650], 1
mov dword [ebp - 0x630], 0x104
mov dword [ebp - 0x634], 0x104
call fcn.00421560
mov ecx, eax
test ecx, ecx
jne 0x4277ac
push 0x80004005
call fcn.004212c0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 1
push eax
push 0
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
or ebx, 0xffffffff
test eax, eax
jne 0x4278f0
push 0x1a
mov edx, str._____b_b_188_b_b__1:_b_b7_995:0
lea ecx, [ebp - 0x648]
call fcn.00420390
mov edx, eax
add esp, 4
mov dword [ebp - 0x64c], edx
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [edx]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x427821
push 0
mov ecx, edx
call fcn.00420ff0
mov edx, dword [ebp - 0x64c]
lea eax, [ebp - 0x63c]
push eax
push 0xf003f
push 0
push dword [edx]
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x648]
mov eax, ebx
sete byte [ebp - 0x641]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x427867
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x641], 0
je 0x4278e4
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x638]
push eax
push 0
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4278b0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x62c]
call fcn.004211a0
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x62c]
push dword [ebp - 0x640]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x42799b
js 0x42799b
push 0x61341c
push esi
call fcn.004e062f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x427998
sub ebx, esi
sar ebx, 1
cmp ebx, 0xffffffff
je 0x427998
lea eax, [ebx + 1]
test eax, eax
js 0x427998
cmp eax, dword [esi - 0xc]
jg 0x427998
lea eax, [esi + eax*2]
push 0x61341c
push eax
call fcn.004e062f
add esp, 8
test eax, eax
je 0x427998
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x427998
sub eax, ebx
lea ecx, [ebp - 0x62c]
dec eax
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.00434170
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004349f0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x648]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42799b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42799b
or ebx, 0xffffffff
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4279ca
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x4279bb
push 0
mov ecx, edi
call fcn.00420ff0
mov ecx, dword [edi]
call fcn.0043b680
test eax, eax
jne 0x427a76
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e0970
add esp, 0xc
lea eax, [ebp - 0x420]
push 1
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x23
mov edx, str.q_b_b
lea ecx, [ebp - 0x64c]
call fcn.00420390
mov ecx, eax
add esp, 4
mov dword [ebp - 0x648], ecx
mov byte [ebp - 4], 4
mov edx, 1
mov eax, dword [ecx]
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, edx
jge 0x427a32
push 0
call fcn.00420ff0
mov ecx, dword [ebp - 0x648]
lea eax, [ebp - 0x420]
push eax
push dword [ecx]
push edi
call fcn.00436c10
mov byte [ebp - 4], 1
add esp, 0xc
mov edx, dword [ebp - 0x64c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x427a65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x61378c
push 0x613420
mov ecx, edi
call fcn.00434250
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x427a8f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
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.004dda5e
mov esp, ebp
pop ebp
ret