Function at 0x457160
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b577
mov eax, dword fs:[0]
push eax
sub esp, 0x4b8
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4bc], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x424], dx
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x42c], 0x647558
push 0
lea ecx, [ebp - 0x21c]
push ecx
push 0x647568
call fcn.00456980
add esp, 0xc
movzx edx, al
test edx, edx
je 0x457290
lea eax, [ebp - 0x21c]
push eax
call fcn.005b50b1
add esp, 4
test eax, eax
jbe 0x457290
push 0x5c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040e2a0
add esp, 8
xor edx, edx
mov word [eax], dx
push 0x5c
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e2a0
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x21c]
push edx
push 0x64757c
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457290
lea edx, [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x4bc]
or eax, 1
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp + 8]
jmp 0x457634
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
push 9
push reloc.WS2_32.dll_accept
call fcn.00456f70
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x45731f
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
push 9
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00456f70
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x45731f
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
push 0x109
push reloc.WS2_32.dll_accept
call fcn.00456f70
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x45731f
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
push 0x109
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00456f70
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call fcn.005b50b1
add esp, 4
test eax, eax
jbe 0x45739b
push 0x5c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0040e2a0
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x21c]
push eax
push 0x6475b8
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45739b
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov ecx, dword [ebp - 0x4bc]
or ecx, 1
mov dword [ebp - 0x4bc], ecx
mov eax, dword [ebp + 8]
jmp 0x457634
push 0
push 0x1a
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.360se6User_DataDefaultHistory
lea eax, [ebp - 0x424]
push eax
call fcn.005b4d90
add esp, 8
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4573f9
lea edx, [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x4bc]
or eax, 1
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp + 8]
jmp 0x457634
mov dword [ebp - 0x428], 0x104
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x10]
push eax
push 0x64763c
push str.360seURL_shellopencommand
push connect
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x457615
lea ecx, [ebp - 0x21c]
push ecx
call fcn.005b50b1
add esp, 4
cmp eax, 5
jb 0x457615
push 0x647678
lea ecx, [ebp - 0x464]
call fcn.0040e4b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x448]
call fcn.0040e4b0
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp - 0x448]
call fcn.00441110
cmp dword [0x63f3a0], eax
je 0x4575f4
push 0
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x448]
call fcn.00441110
push eax
push 0
lea edx, [ebp - 0x480]
push edx
lea ecx, [ebp - 0x448]
call fcn.0041c700
mov dword [ebp - 0x4c0], eax
mov eax, dword [ebp - 0x4c0]
mov dword [ebp - 0x4c4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c4]
push ecx
lea ecx, [ebp - 0x448]
call fcn.0040e550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x480]
call fcn.0040e530
push 0x6476a4
lea ecx, [ebp - 0x49c]
call fcn.0040e4b0
mov byte [ebp - 4], 3
push 0x6476a8
lea ecx, [ebp - 0x4b8]
call fcn.0040e4b0
mov byte [ebp - 4], 4
push 1
lea edx, [ebp - 0x49c]
push edx
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x448]
push ecx
call fcn.0043b560
add esp, 0x10
push eax
lea ecx, [ebp - 0x448]
call fcn.0040e550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4b8]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x49c]
call fcn.0040e530
lea ecx, [ebp - 0x448]
call fcn.0040e5d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4575f4
lea ecx, [ebp - 0x448]
call fcn.0040e5d0
push eax
push 0x6476ac
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4575f4
lea ecx, [ebp - 0x424]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov edx, dword [ebp - 0x4bc]
or edx, 1
mov dword [ebp - 0x4bc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x464]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x457634
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x448]
call fcn.0040e530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x464]
call fcn.0040e530
push 0x6476e4
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x4bc]
or eax, 1
mov dword [ebp - 0x4bc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret