Function at 0x408e8f
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c4
mov eax, dword [0x4271f0]
xor eax, esp
mov dword [esp + 0x4c0], eax
and dword [esp + 0x58], 0
push ebx
push esi
xor eax, eax
and dword [esp + 0x10], eax
push edi
mov dword [esp + 0x68], 7
mov word [esp + 0x54], ax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00406d4d
push eax
call fcn.00402d25
push str.mode
call fcn.00406d4d
lea ebx, [esp + 0x3c]
mov ecx, eax
call fcn.00402d82
cmp dword [esp + 0x48], 0
jne 0x408f04
push 1
xor edi, edi
mov esi, ebx
call fcn.004013ee
and dword [esp + 0x14], edi
jmp 0x408f6b
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x408f13
lea eax, [esp + 0x38]
push str.download
push eax
call fcn.0040d880
pop ecx
pop ecx
test eax, eax
jne 0x408f2e
mov dword [esp + 0x14], 1
jmp 0x408f56
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x408f3d
lea eax, [esp + 0x38]
push 0x423e7c
push eax
call fcn.0040d880
pop ecx
pop ecx
test eax, eax
jne 0x408f56
mov dword [esp + 0x14], 2
push 1
xor edi, edi
lea esi, [esp + 0x3c]
call fcn.004013ee
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00406d4d
push eax
call fcn.00402d25
push str.trigging
call fcn.00406d4d
lea ebx, [esp + 0x3c]
mov ecx, eax
call fcn.00402d82
cmp dword [esp + 0x48], 0
jne 0x408fab
push 1
xor edi, edi
mov esi, ebx
call fcn.004013ee
and dword [esp + 0x1c], edi
jmp 0x409009
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x408fba
lea eax, [esp + 0x38]
push str.exit
push eax
call fcn.0040d880
pop ecx
pop ecx
test eax, eax
jne 0x408fd0
xor ebx, ebx
inc ebx
jmp 0x408ff8
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x408fdf
lea eax, [esp + 0x38]
push str.task
push eax
call fcn.0040d880
mov ebx, eax
neg ebx
sbb ebx, ebx
pop ecx
and ebx, 0xfffffffe
pop ecx
add ebx, 2
push 1
xor edi, edi
lea esi, [esp + 0x3c]
call fcn.004013ee
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
call fcn.00406d4d
push eax
call fcn.00402d25
push str.from
call fcn.00406d4d
lea ebx, [esp + 0x3c]
mov ecx, eax
call fcn.00402d82
xor ebx, ebx
cmp dword [esp + 0x48], ebx
jne 0x40905b
push 1
xor edi, edi
lea esi, [esp + 0x3c]
call fcn.004013ee
mov dword [esp + 0x10], 1
jmp 0x4090ec
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x40906a
lea eax, [esp + 0x38]
push str.typeeasy
push eax
call fcn.0040d880
pop ecx
pop ecx
test eax, eax
jne 0x409085
mov dword [esp + 0x10], 1
jmp 0x4090d7
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x409094
lea eax, [esp + 0x38]
push str.service
push eax
call fcn.0040d880
pop ecx
pop ecx
test eax, eax
jne 0x4090af
mov dword [esp + 0x10], 2
jmp 0x4090d7
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4090be
lea eax, [esp + 0x38]
push str.task
push eax
call fcn.0040d880
pop ecx
pop ecx
test eax, eax
jne 0x4090d7
mov dword [esp + 0x10], 3
push 1
xor edi, edi
lea esi, [esp + 0x3c]
call fcn.004013ee
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
je 0x409133
lea eax, [esp + 0x18]
push eax
mov edi, str.start
lea ebx, [esp + 0x3c]
call fcn.00407569
pop ecx
mov ebx, eax
lea edi, [esp + 0x24]
call fcn.00407730
push 1
xor edi, edi
lea esi, [esp + 0x3c]
call fcn.004013ee
call fcn.00408ad1
mov bl, al
movzx eax, bl
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push 0x20006
xor edi, edi
push edi
push str.SoftwarekingsoftTypeEasyTypeEasyEx
push 0x80000001
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40917f
push 4
lea eax, [esp + 0x38]
push eax
push 4
push edi
push str.NeedUpdate
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test bl, bl
je 0x4093b6
cmp dword [esp + 0x14], 2
jne 0x40920b
xor eax, eax
push 0x206
mov word [esp + 0x2c4], ax
lea eax, [esp + 0x2c6]
push edi
push eax
call fcn.00411bc0
add esp, 0xc
lea eax, [esp + 0x2c0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x423d58
lea eax, [esp + 0x2c4]
push esi
push eax
call fcn.0040d6a5
add esp, 0xc
lea eax, [esp + 0x70]
push eax
push edi
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4092d4
lea eax, [esp + 0x2c0]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004026b1
jmp 0x4092d4
lea eax, [esp + 0x18]
push eax
mov edi, str.downloadstart
lea ebx, [esp + 0x3c]
call fcn.00407569
pop ecx
mov ebx, eax
lea edi, [esp + 0x24]
call fcn.00407730
push 1
xor edi, edi
lea esi, [esp + 0x3c]
call fcn.004013ee
lea ecx, [esp + 0x38]
call fcn.004089fe
mov ebx, eax
lea eax, [esp + 0x54]
call fcn.0040123c
push 1
lea esi, [esp + 0x3c]
call fcn.004013ee
cmp dword [esp + 0x64], edi
je 0x409288
lea eax, [esp + 0x18]
push eax
mov edi, str.downloadsucceed
lea ebx, [esp + 0x3c]
call fcn.00407569
pop ecx
mov ebx, eax
lea edi, [esp + 0x24]
call fcn.00407730
push 1
xor edi, edi
lea esi, [esp + 0x3c]
call fcn.004013ee
call fcn.00408e66
test al, al
jne 0x4092cd
push 0x104
lea eax, [esp + 0x2c4]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esp + 0x10], 3
push 1
lea eax, [esp + 0x2c4]
push esi
jne 0x4092bf
push str._modeupdate__fromuplive__triggingtask
jmp 0x4092c4
push str._modeupdate__fromuplive
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x104
xor edi, edi
cmp dword [esp + 0x64], edi
je 0x4093b6
cmp dword [esp + 0x14], 1
je 0x4093b6
mov ebx, dword [esp + 0x10]
cmp ebx, 3
jne 0x4092ff
call fcn.00408e66
test al, al
jne 0x4093b6
xor eax, eax
push 0x206
mov word [esp + 0x2c4], ax
lea eax, [esp + 0x2c6]
push edi
push eax
call fcn.00411bc0
add esp, 0xc
cmp ebx, 1
jne 0x40932b
push str._fromtypeeasy
jmp 0x409341
cmp ebx, 2
jne 0x409337
push str._fromservice
jmp 0x409341
cmp ebx, 3
jne 0x409352
push str._fromtask
lea eax, [esp + 0x2c4]
push esi
push eax
call fcn.0040d71a
add esp, 0xc
cmp dword [esp + 0x1c], 1
jne 0x409360
push str.__triggingexit
jmp 0x409382
cmp dword [esp + 0x1c], 2
jne 0x409393
push str.qSbW_
push str.QWidget
push edi
push edi
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x409393
push str.__triggingtask
lea eax, [esp + 0x2c4]
push esi
push eax
call fcn.0040d6a5
add esp, 0xc
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x4093a2
lea eax, [esp + 0x54]
push 1
push edi
lea ecx, [esp + 0x2c8]
push ecx
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x24]
call fcn.00407623
push 1
xor edi, edi
lea esi, [esp + 0x58]
call fcn.004013ee
mov ecx, dword [esp + 0x4cc]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040b365
mov esp, ebp
pop ebp
ret 0x10