Function at 0x401860
Capabilities:
Create process on windows
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e41d
mov eax, dword fs:[0]
push eax
mov eax, 0x2a40
call fcn.0040ad20
mov eax, dword [0x413020]
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
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00404360
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1216]
push eax
mov word [ebp - 0x1218], dx
call fcn.00404360
add esp, 0x18
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoadDownLoadDlg.exe
lea edx, [ebp - 0x218]
push edx
push str._s_s
mov eax, edx
push 0x104
push eax
call fcn.00403fad
add esp, 0x14
push str._Register
lea ecx, [ebp - 0x1218]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
test byte [ebp + 8], 2
je 0x401d00
mov eax, section..dldata
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401927
sub eax, edx
sar eax, 1
je 0x401d00
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x2a16]
push eax
mov word [ebp - 0x2a18], dx
call fcn.00404360
add esp, 0xc
lea ecx, [ebp - 0x2a34]
call fcn.00401ee0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x2a20], 0x10
jb 0x4019ba
mov edi, dword [ebp - 0x2a34]
test edi, edi
je 0x4019c2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [eax + 1]
cmp ebx, 0x3fffffff
jg 0x4019c2
lea eax, [ebx + ebx]
call fcn.0040bdf0
mov esi, esp
test esi, esi
je 0x4019c2
push ebx
push esi
push 0xffffffffffffffff
xor ecx, ecx
push edi
push ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4019c4
lea edi, [ebp - 0x2a34]
jmp 0x40197f
xor eax, eax
push eax
push str.http:__yz.app.sogou.com_appinfo_key_s
lea edx, [ebp - 0x2a18]
push 0x400
push edx
call fcn.00403fad
mov eax, dword [0x413e60]
add esp, 0x10
mov dword [ebp - 0x2a3c], eax
push 0
push 0x3e8
lea ecx, [ebp - 0x2a3c]
push ecx
push ecx
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x2a18]
mov esi, esp
mov dword [ebp - 0x2a48], esp
call fcn.00401060
call fcn.00402e60
add esp, 0x10
test eax, eax
jne 0x401a47
lea esi, [ebp - 0x2a3c]
call fcn.004014d0
cmp dword [ebp - 0x2a20], 0x10
jb 0x401d00
mov edx, dword [ebp - 0x2a34]
push edx
call fcn.00403f93
add esp, 4
jmp 0x401d00
mov eax, dword [ebp - 0x2a3c]
cmp dword [eax - 8], 0
jle 0x401cea
mov ecx, str.statustrue
lea esi, [ebp - 0x2a3c]
call fcn.00401220
cmp eax, 0xffffffff
je 0x401cea
mov ecx, 0x411330
call fcn.00401220
lea edx, [eax + 1]
lea esi, [ebp - 0x2a38]
lea eax, [ebp - 0x2a3c]
call fcn.00401200
mov ecx, 0x411334
mov byte [ebp - 4], 2
call fcn.00401220
mov ecx, 0x411330
mov edi, eax
call fcn.00401220
mov esi, eax
cmp esi, edi
jle 0x401cdf
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x2216]
push edx
mov word [ebp - 0x2218], cx
call fcn.00404360
add esp, 0xc
lea eax, [ebp - 0x2a40]
push eax
mov ecx, esi
sub ecx, edi
lea eax, [ebp - 0x2a38]
dec ecx
lea edx, [edi + 1]
push eax
call fcn.00401140
lea ecx, [ebp - 0x2218]
mov bl, 3
mov byte [ebp - 4], bl
push ecx
mov ecx, dword [ebp - 0x2a40]
call fcn.004021d0
add esp, 4
test eax, eax
je 0x401cd4
lea edx, [esi + 1]
lea esi, [ebp - 0x2a48]
lea eax, [ebp - 0x2a38]
call fcn.00401200
mov edi, eax
lea eax, [ebp - 0x2a38]
mov byte [ebp - 4], 4
call fcn.004010c0
mov byte [ebp - 4], bl
call fcn.004014d0
mov ecx, 0x411334
lea esi, [ebp - 0x2a38]
call fcn.00401220
mov ecx, 0x411330
mov edi, eax
call fcn.00401220
mov esi, eax
cmp esi, edi
jle 0x401cd4
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1a16]
push eax
mov word [ebp - 0x1a18], dx
call fcn.00404360
add esp, 0xc
lea eax, [ebp - 0x2a44]
push eax
mov ecx, esi
sub ecx, edi
lea eax, [ebp - 0x2a38]
dec ecx
lea edx, [edi + 1]
push eax
call fcn.00401140
lea ecx, [ebp - 0x1a18]
mov bl, 5
mov byte [ebp - 4], bl
push ecx
mov ecx, dword [ebp - 0x2a44]
call fcn.004021d0
add esp, 4
test eax, eax
je 0x401cc9
lea edx, [esi + 1]
lea esi, [ebp - 0x2a48]
lea eax, [ebp - 0x2a38]
call fcn.00401200
mov edi, eax
lea eax, [ebp - 0x2a38]
mov byte [ebp - 4], 6
call fcn.004010c0
mov byte [ebp - 4], bl
call fcn.004014d0
mov ecx, 0x411334
lea esi, [ebp - 0x2a38]
call fcn.00401220
mov ecx, 0x411330
mov edi, eax
call fcn.00401220
mov esi, eax
cmp esi, edi
jle 0x401cc9
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0xa16]
push eax
mov word [ebp - 0xa18], dx
call fcn.00404360
add esp, 0xc
lea eax, [ebp - 0x2a4c]
push eax
mov ecx, esi
sub ecx, edi
lea eax, [ebp - 0x2a38]
dec ecx
lea edx, [edi + 1]
push eax
call fcn.00401140
lea ecx, [ebp - 0xa18]
push ecx
mov ecx, dword [ebp - 0x2a4c]
call fcn.004021d0
add esp, 4
test eax, eax
je 0x401cbe
test byte [ebp + 8], 1
je 0x401c8f
lea edx, [ebp - 0xa18]
push edx
lea eax, [ebp - 0x1a18]
push eax
lea ecx, [ebp - 0x2218]
push ecx
push edx
push 0x411338
push 0x400
lea eax, [ebp - 0x1218]
push eax
jmp 0x401cb6
lea ecx, [ebp - 0xa18]
push ecx
lea edx, [ebp - 0x1a18]
push edx
lea eax, [ebp - 0x2218]
push eax
push ecx
push str._DownLoad_windowsname_sulr_sicourl_ssoftname_send
push 0x400
lea edx, [ebp - 0x1218]
push edx
call fcn.00403fad
add esp, 0x1c
lea esi, [ebp - 0x2a4c]
call fcn.004014d0
lea esi, [ebp - 0x2a44]
call fcn.004014d0
lea esi, [ebp - 0x2a40]
call fcn.004014d0
lea esi, [ebp - 0x2a38]
call fcn.004014d0
lea esi, [ebp - 0x2a3c]
call fcn.004014d0
lea esi, [ebp - 0x2a34]
call fcn.00401d60
push 1
push 0
lea eax, [ebp - 0x1218]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jge 0x401d32
push eax
push str.Execute_Dlg_fail__error_Num___d
call fcn.00402be0
add esp, 8
mov eax, 1
lea esp, [ebp - 0x2a5c]
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.00403f9e
mov esp, ebp
pop ebp
ret