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

Disassembly:
push 0xffffffffffffffff
push 0x44b8fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push ebp
push esi
lea edx, [esp + 0x14]
push edi
mov ebp, ecx
push edx
lea edx, [esp + 0x24]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x24]
push edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x48]
lea edx, [esp + 0x1c]
mov esi, 1
push edx
push eax
mov eax, dword [ebp + 0x54]
push ecx
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x80
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x14], esi
jne 0x420691
cmp word [esp + 0x20], 0
je 0x420691
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x420691
mov ecx, dword [0x455050]
lea edx, [esp + 0x20]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x420632
lea eax, [esp + 0x20]
shr eax, 0x10
jne 0x4205f2
xor eax, eax
lea ecx, [esp + 0x20]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004015b0
jmp 0x420632
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x420632
push esi
lea ecx, [esp + 0x14]
call fcn.00401820
test eax, eax
je 0x420632
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x420632
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x50]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x43c], 0
call ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4206ac
mov eax, dword [esp + 0x10]
mov edx, dword [0x455054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x420691
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420691
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x428]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea esi, [ebp + 0x40]
mov dword [ebp + 0x5c], 1
mov ecx, dword [esi]
cmp ecx, eax
je 0x420706
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4206da
mov edx, dword [0x455054]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4206e1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4206ef
push eax
mov eax, dword [eax - 8]
push eax
mov ecx, esi
call fcn.00404a30
jmp 0x420702
mov ecx, esi
call fcn.00401880
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x44]
lea esi, [ebp + 0x44]
cmp ecx, eax
je 0x420750
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x420724
mov edx, dword [0x455054]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42072b
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x420739
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, esi
call fcn.00404a30
jmp 0x42074c
mov ecx, esi
call fcn.00401880
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x10]
push str.360ver.dll
lea edx, [esp + 0x124]
push eax
push edx
call ebx
lea eax, [esp + 0x120]
push eax
call fcn.0041c7c0
add esp, 4
test eax, eax
je 0x420825
lea ecx, [esp + 0x120]
push ecx
call fcn.00436020
mov esi, eax
test esi, esi
je 0x420825
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Get360SafeVersion
push esi
call ebx
push str.IsBetaVersion
push esi
mov edi, eax
call ebx
mov ebx, eax
test edi, edi
mov dword [esp + 0x1c], ebx
je 0x42081a
lea edx, [esp + 0x220]
push 0x104
push edx
call edi
add esp, 8
test eax, eax
jne 0x42081a
mov eax, str.0.0.0.0
lea edi, [ebp + 0x58]
test eax, eax
jne 0x4207d7
xor esi, esi
jmp 0x4207e4
push str.0.0.0.0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
mov ecx, edi
call fcn.0040ac40
test eax, eax
je 0x42081a
mov edx, dword [edi]
lea ebx, [esi + esi]
push ebx
lea ecx, [esi + esi + 2]
push str.0.0.0.0
push ecx
push edx
call fcn.004017c0
mov eax, dword [edi]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [edi]
mov word [ebx + ecx], 0
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x42083e
call ebx
mov dword [ebp + 0x64], eax
jmp 0x42083e
lea edx, [esp + 0x220]
push 0x104
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, ebp
call fcn.004208d0
lea ecx, [esp + 0x220]
lea edi, [ebp + 0x58]
test ecx, ecx
jne 0x420850
xor esi, esi
jmp 0x420860
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
mov ecx, edi
call fcn.0040ac40
test eax, eax
je 0x420895
mov edx, dword [edi]
lea ebp, [esi + esi]
lea eax, [esp + 0x220]
push ebp
lea ecx, [esi + esi + 2]
push eax
push ecx
push edx
call fcn.004017c0
mov eax, dword [edi]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [edi]
mov word [ecx + ebp], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x455054]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4208c4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4208c4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042ac06
add esp, 4
mov eax, 1
jmp 0x420693