Function at 0x45de70
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462d73
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x4891c0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4ac], ecx
mov dword [ebp - 0x4a8], 0
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x1c
add ecx, dword [ebp - 0x4ac]
call fcn.004015b0
movzx eax, al
test eax, eax
jne 0x45deef
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x1c
add ecx, dword [ebp - 0x4ac]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401d70
mov edx, dword [ebp - 0x4a8]
or edx, 1
mov dword [ebp - 0x4a8], edx
mov eax, dword [ebp + 8]
jmp 0x45e1a7
cmp dword [ebp + 0xc], 3
jne 0x45dfb7
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x1c
add eax, dword [ebp - 0x4ac]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push str.SoftwareSogouExplorer
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45dfb2
mov dword [ebp - 0x228], 1
xor edx, edx
mov word [ebp - 0x224], dx
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.0043c260
add esp, 0xc
mov dword [ebp - 0x22c], 0x104
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x228]
push eax
push 0
push 0x477c24
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45dfb2
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00401d00
push 0x477c28
mov ecx, dword [ebp - 0x14]
call fcn.00401600
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45e180
cmp dword [ebp + 0xc], 0
jne 0x45e073
push 3
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x4ac]
call fcn.0045de70
mov dword [ebp - 4], 0
push 0x477c2c
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x488]
push eax
call fcn.004026e0
add esp, 0xc
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x4b4], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4b4]
push edx
lea ecx, [ebp - 0x248]
call fcn.00401540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x488]
call fcn.004026a0
lea ecx, [ebp - 0x248]
call fcn.00401d50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e05c
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x1c
add ecx, dword [ebp - 0x4ac]
call fcn.00401540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004026a0
jmp 0x45e180
cmp dword [ebp + 0xc], 1
jne 0x45e12c
push 3
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp - 0x4ac]
call fcn.0045de70
mov dword [ebp - 4], 2
push str.sogouexplorerup.exe
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x4a4]
push eax
call fcn.004026e0
add esp, 0xc
mov dword [ebp - 0x4b8], eax
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4bc]
push edx
lea ecx, [ebp - 0x264]
call fcn.00401540
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a4]
call fcn.004026a0
lea ecx, [ebp - 0x264]
call fcn.00401d50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e118
lea eax, [ebp - 0x264]
push eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x1c
add ecx, dword [ebp - 0x4ac]
call fcn.00401540
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.004026a0
jmp 0x45e180
cmp dword [ebp + 0xc], 2
jne 0x45e180
xor ecx, ecx
mov word [ebp - 0x46c], cx
push 0x206
push 0
lea edx, [ebp - 0x46a]
push edx
call fcn.0043c260
add esp, 0xc
push 0x104
lea eax, [ebp - 0x46c]
push eax
push str._Appdata_SogouExplorer_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x46c]
push ecx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x1c
add ecx, dword [ebp - 0x4ac]
call fcn.00401d00
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x1c
add edx, dword [ebp - 0x4ac]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401d70
mov eax, dword [ebp - 0x4a8]
or eax, 1
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0043bc88
mov esp, ebp
pop ebp
ret 8