Function at 0x408ba9
Capabilities:
Set registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x551bd0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x22c]
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push str..apk
mov edi, connect
push edi
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.SogouMiniTool.file
test eax, eax
jne 0x408c2b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408c03
sub eax, edx
sar eax, 1
inc eax
push eax
push esi
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
lea eax, [esp + 0x10]
push eax
push esi
push edi
call ebp
test eax, eax
jne 0x408c6a
mov ecx, 0x538400
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408c42
sub eax, edi
sar eax, 1
inc eax
push eax
push ecx
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
mov edi, 0x208
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x2c]
push str._sDefaultIcon
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push connect
call ebp
test eax, eax
jne 0x408cd9
mov eax, dword [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408cae
sub eax, edx
sar eax, 1
inc eax
push eax
push dword [esp + 0x18]
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push str.SogouMiniTool.file
lea eax, [esp + 0x2c]
push str._sShell
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push connect
call ebp
test eax, eax
jne 0x408d2d
push 5
push str.Open
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push str.SogouMiniTool.file
lea eax, [esp + 0x2c]
push str._sShellOpen
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push connect
call ebp
test eax, eax
jne 0x408d9b
mov ecx, 0x5383f8
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x14], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408d71
sub eax, dword [esp + 0x14]
sar eax, 1
inc eax
push eax
push ecx
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push str.Open
push str.SogouMiniTool.file
lea eax, [esp + 0x30]
push str._sShell_sCommand
push eax
call esi
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push connect
call ebp
test eax, eax
jne 0x408e28
push edi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0049d740
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push str.__s___pkgpath___1_
push eax
call esi
lea eax, [esp + 0x34]
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408dfc
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x20]
push eax
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push 0x5379f2
lea eax, [esp + 0x2c]
push str._s_auto_fileShell
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push connect
call ebp
test eax, eax
jne 0x408e7c
push 5
push str.Open
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push 0x5379f2
lea eax, [esp + 0x2c]
push str._s_auto_fileShellOpen
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push connect
call ebp
test eax, eax
jne 0x408eea
mov ecx, 0x5383f8
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x14], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408ec0
sub eax, dword [esp + 0x14]
sar eax, 1
inc eax
push eax
push ecx
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push str.Open
push 0x5379f2
lea eax, [esp + 0x30]
push str._s_auto_fileShell_sCommand
push eax
call esi
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push connect
call ebp
test eax, eax
jne 0x408f77
push edi
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0049d740
push dword [esp + 0x24]
lea eax, [esp + 0x2c]
push str.__s___pkgpath___1_
push eax
call esi
lea eax, [esp + 0x34]
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408f4b
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x20]
push eax
push 1
push 0x535d58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [esp + 0x10]
call ebx
push edi
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d740
push str..apk
lea eax, [esp + 0x2c]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_s
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push reloc.WS2_32.dll_accept
call ebp
test eax, eax
jne 0x408fe8
mov ecx, str.SogouMiniTool.file
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x18], edx
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x408fbb
sub eax, dword [esp + 0x18]
sar eax, 1
add eax, eax
push eax
push ecx
push 1
push 0
push str.Progid
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call ebx
push edi
xor edi, edi
lea eax, [esp + 0x20]
push edi
push eax
call fcn.0049d740
push str..apk
lea eax, [esp + 0x2c]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
push reloc.WS2_32.dll_accept
call ebp
test eax, eax
jne 0x409053
mov ecx, str.SogouMiniTool.file
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, di
jne 0x409029
sub eax, edx
sar eax, 1
add eax, eax
push eax
push ecx
push 1
push edi
push str.Progid
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call ebx
push edi
push edi
push edi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049a49b
add esp, 0x218
ret