Function at 0x4017a0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b914
mov eax, dword fs:[0]
push eax
mov eax, 0x1cb8
call fcn.00418640
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x206
xor esi, esi
lea ecx, [ebp - 0x29a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x29c], ax
call fcn.00411a80
mov edx, dword [0x4362c8]
add esp, 0xc
mov dword [ebp - 0x1cb0], edx
push 0x104
lea eax, [ebp - 0x29c]
push eax
push str.PROGRAMFILES
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoadDownLoadDlg.exe
lea ecx, [ebp - 0x29c]
push ecx
push str._s_s
mov edx, ecx
push 0x104
push edx
call fcn.0041163b
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, esi
je 0x401853
mov ecx, dword [eax + 0x3c]
mov eax, dword [ecx + eax + 0x58]
mov dword [ebp - 0x1ca8], eax
jmp 0x401859
mov dword [ebp - 0x1ca8], esi
mov edi, dword [ebp - 0x1ca8]
mov ecx, edi
and ecx, 0xff000000
cmp ecx, 0x1000000
jne 0x401878
push 0xe
mov esi, str.game_1
jmp 0x401882
push 0x208
mov esi, str.sogou_download
call fcn.00403300
add esp, 4
push str._ExternalAppInstall
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str._ExternalAppInstall
mov ebx, eax
lea esi, [ebp - 0x1cb0]
call fcn.00401440
test byte [ebp + 8], 2
je 0x401c4b
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1ca2]
push eax
mov word [ebp - 0x1ca4], dx
call fcn.00411a80
add esp, 0xc
push edi
push str.http:__yz.app.sogou.com_appinfo_num_d
lea ecx, [ebp - 0x1ca4]
push 0x400
push ecx
call fcn.0041163b
mov edx, dword [0x4362c8]
add esp, 0x10
mov dword [ebp - 0x1cac], edx
push 0
push 0xbb8
push ecx
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x1ca4]
mov esi, esp
lea edi, [ebp - 0x1cac]
mov dword [ebp - 0x1cb4], esp
call fcn.00401050
mov ecx, edi
call fcn.00404b00
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x401962
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1cac]
lea ecx, [eax - 0xc]
cmp ecx, 0x4362b8
je 0x401c4b
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401c4b
push esi
call fcn.0041176b
add esp, 4
jmp 0x401c4b
mov esi, dword [ebp - 0x1cac]
mov eax, dword [esi - 8]
cmp eax, ebx
jle 0x401c3d
push str.statustrue
push esi
call fcn.0041170b
add esp, 8
cmp eax, ebx
je 0x401c3d
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x401c3d
call fcn.00403120
cmp eax, ebx
je 0x401ba2
cmp eax, 0x200001a
jae 0x401ba2
lea esi, [ebp - 0x1cc4]
call fcn.00401f30
mov edx, esi
push edx
lea eax, [ebp - 0x1cac]
push eax
mov byte [ebp - 4], 4
call fcn.00403720
push 0x7fe
lea edx, [ebp - 0xca2]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0xca4], cx
call fcn.00411a80
add esp, 0x14
push 0x7fe
lea ecx, [ebp - 0x14a2]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x14a4], ax
call fcn.00411a80
add esp, 0xc
push 0x206
lea eax, [ebp - 0x4a2]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x4a4], dx
call fcn.00411a80
add esp, 0xc
mov ebx, str.softurl
lea esi, [ebp - 0x1ca8]
call fcn.00401050
mov ecx, esi
push ecx
lea ecx, [ebp - 0x1cc4]
mov byte [ebp - 4], 5
call fcn.00401fa0
mov ecx, dword [eax]
lea edx, [ebp - 0xca4]
push 0x400
push edx
call fcn.00403510
add esp, 8
test eax, eax
sete bl
mov byte [ebp - 4], 4
call fcn.00401370
test bl, bl
je 0x401aae
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1cc0]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x1cb4]
lea esi, [ebp - 0x1cc4]
call fcn.004021b0
mov eax, dword [ebp - 0x1cc0]
push eax
call fcn.004114ab
add esp, 4
lea esi, [ebp - 0x1cac]
call fcn.00401370
jmp 0x401caa
mov ebx, str.iconurl
lea esi, [ebp - 0x1ca8]
call fcn.00401050
mov ecx, esi
push ecx
lea ecx, [ebp - 0x1cc4]
mov byte [ebp - 4], 7
call fcn.00401fa0
mov ecx, dword [eax]
lea edx, [ebp - 0x14a4]
push 0x400
push edx
call fcn.00403510
add esp, 8
test eax, eax
sete bl
mov byte [ebp - 4], 4
call fcn.00401370
test bl, bl
je 0x401b01
mov byte [ebp - 4], 8
jmp 0x401a74
mov ebx, str.softname
lea esi, [ebp - 0x1ca8]
call fcn.00401050
mov ecx, esi
push ecx
lea ecx, [ebp - 0x1cc4]
mov byte [ebp - 4], 9
call fcn.00401fa0
mov ecx, dword [eax]
lea edx, [ebp - 0x4a4]
push 0x104
push edx
call fcn.00403510
add esp, 8
test eax, eax
sete bl
mov byte [ebp - 4], 4
call fcn.00401370
test bl, bl
je 0x401b54
mov byte [ebp - 4], 0xa
jmp 0x401a74
lea ecx, [ebp - 0x4a4]
push ecx
lea edx, [ebp - 0x14a4]
push edx
lea eax, [ebp - 0xca4]
push eax
push ecx
push str._DownLoad_windowsname_sulr_sicourl_ssoftname_send
push 0x800
lea edx, [ebp - 0x1cb0]
push edx
mov eax, 0x800
call fcn.004012c0
push eax
call fcn.0041163b
add esp, 0x1c
lea eax, [ebp - 0x1cb0]
call fcn.00401350
mov byte [ebp - 4], 0xb
jmp 0x401a74
mov bl, 1
test byte [ebp + 8], bl
je 0x401bfc
lea ecx, [ebp - 0x1cac]
push ecx
lea edx, [ebp - 0x1ca8]
push edx
mov ecx, str._Install_
call fcn.004015d0
mov edi, eax
lea eax, [ebp - 0x1cb0]
mov byte [ebp - 4], 2
call fcn.004010b0
lea esi, [ebp - 0x1ca8]
mov byte [ebp - 4], bl
call fcn.00401370
call fcn.00405640
mov ecx, eax
call fcn.00405930
lea esi, [ebp - 0x1cac]
call fcn.00401370
jmp 0x401caa
lea eax, [ebp - 0x1cac]
push eax
lea ecx, [ebp - 0x1ca8]
push ecx
mov ecx, str._DownLoad_
call fcn.004015d0
mov edi, eax
lea eax, [ebp - 0x1cb0]
mov byte [ebp - 4], 3
call fcn.004010b0
lea esi, [ebp - 0x1ca8]
call fcn.00401370
lea esi, [ebp - 0x1cac]
call fcn.00401370
jmp 0x401caa
lea esi, [ebp - 0x1cac]
mov byte [ebp - 4], bl
call fcn.00401370
mov edx, dword [ebp - 0x1ca8]
push edx
push str.keynum_d
lea eax, [ebp - 0x94]
push 0x40
push eax
call fcn.0041163b
mov eax, 1
add esp, 0x10
test byte [0x438054], al
jne 0x401c95
or dword [0x438054], eax
mov byte [ebp - 4], 0xc
call fcn.004054e0
push 0x42c130
call fcn.00411c8b
add esp, 4
mov byte [ebp - 4], 0
call fcn.00405f20
lea ecx, [ebp - 0x94]
mov edi, 0x437bc0
call fcn.00405a20
mov esi, dword [ebp - 0x1cb0]
push 1
push 0
push esi
lea ecx, [ebp - 0x29c]
push ecx
push 0x43036c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea edx, [esi - 0xc]
cmp edx, 0x4362b8
je 0x401ceb
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401ceb
push esi
call fcn.0041176b
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret