Function at 0x416998
Capabilities:
Read file via mapping
Set registry value

Disassembly:
mov eax, 0x4e5084
call fcn.004e1580
sub esp, 0x50
and dword [ebp - 0x28], 0
push ebx
push esi
push edi
push 1
mov dword [ebp - 0x24], ecx
pop esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp dword [eax], esi
jle 0x416ea2
mov edi, dword [sym.imp.MSVCRT.dll__mbsnbicmp]
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov esi, dword [eax + ecx*4]
call dword [sym.imp.MSVCRT.dll___p___argc]
mov al, byte [esi]
cmp al, 0x2d
je 0x4169ee
cmp al, 0x2f
jne 0x416d7f
mov ebx, str.SpeedUp
inc esi
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
je 0x416d98
mov ebx, str.set_xunlei_as_ie_startpage
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
je 0x416d9f
mov ebx, str.set_ie_startpage:
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x416ab4
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
and dword [ebp - 4], 0
mov esi, 0x52ac38
push esi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::TrimRight_2
push esi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::TrimLeft_1
lea eax, [ebp - 0x3c]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.BugReport.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x416aa3
mov eax, dword [ebp - 0x18]
push dword [eax - 8]
push eax
push 1
push 0
push str.Start_Page
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
jmp 0x416d7f
mov ebx, str.InstallAddin:
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x416b7d
and dword [ebp - 0x14], eax
push ebx
call sub.MSVCRT.dll_strlen
mov ebx, dword [sym.imp.MSVCRT.dll__mbschr]
add esi, eax
push 0x7c
push esi
call ebx
add esp, 0xc
mov dword [ebp - 0x40], eax
test eax, eax
je 0x416d7f
sub eax, esi
lea ecx, [ebp - 0x1c]
push eax
push esi
call fcn.004e0b5e
mov eax, dword [ebp - 0x40]
push 1
pop esi
inc eax
push 0x7c
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], eax
call ebx
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
jne 0x416b22
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
jmp 0x416aaa
mov eax, ebx
lea ecx, [ebp - 0x30]
sub eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004e0b5e
lea eax, [ebx + 1]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
cmp dword [eax - 8], 0
je 0x416b63
push esi
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
call fcn.004946a7
add esp, 0x10
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x416b19
mov ebx, str.InstallAddinFront:
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x416c45
and dword [ebp - 0x14], eax
push ebx
call sub.MSVCRT.dll_strlen
add esi, eax
push 0x7c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x416d7f
sub eax, esi
lea ecx, [ebp - 0x20]
push eax
push esi
call fcn.004e0b5e
inc ebx
push 0x7c
push ebx
mov dword [ebp - 4], 4
call dword [sym.imp.MSVCRT.dll__mbschr]
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x416bea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
jmp 0x416aaa
mov eax, esi
lea ecx, [ebp - 0x38]
sub eax, ebx
push eax
push ebx
call fcn.004e0b5e
lea eax, [esi + 1]
lea ecx, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 6
cmp dword [eax - 8], 0
je 0x416c2b
push 1
pop esi
push esi
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x20]
call fcn.00494780
add esp, 0x10
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
jmp 0x416bde
mov ebx, str.UninstallAddin:
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x416c94
and dword [ebp - 0x14], eax
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
add esi, eax
push esi
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp - 0x44]
mov dword [ebp - 4], 7
call fcn.004949a3
or dword [ebp - 4], 0xffffffff
pop ecx
mov dword [ebp - 0x28], 1
lea ecx, [ebp - 0x44]
jmp 0x416aaa
mov ebx, 0x4fa44c
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x416cc9
mov ecx, dword [ebp - 0x24]
push 1
pop eax
push eax
mov dword [ecx + 0xcc], eax
push 0x2be
call fcn.00419569
pop ecx
pop ecx
jmp 0x416d7f
mov ebx, 0x4fa450
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x416cf0
push 1
pop eax
push eax
mov dword [0x530280], eax
push 0x2bd
jmp 0x416cbd
mov ebx, 0x4fa454
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
jne 0x416d16
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xd0], 1
jmp 0x416d7f
mov ebx, str.OpenUrlSilently:
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call dword [sym.imp.MSVCRT.dll__mbsnbcmp]
add esp, 0x10
test eax, eax
jne 0x416d49
and dword [ebp - 0x14], eax
push ebx
call sub.MSVCRT.dll_strlen
add esi, eax
push 0xa
push esi
call fcn.00416719
add esp, 0xc
jmp 0x416d7f
mov ebx, str.thunderim:
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
je 0x416df7
mov ebx, str.AgentFile
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
test eax, eax
je 0x416e11
inc dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll___p___argc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax]
jl 0x4169cc
jmp 0x416e38
call fcn.00416904
jmp 0x416df0
lea eax, [ebp - 0x44]
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push reloc.BugReport.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x416df0
push 5
mov esi, str.http:__www.gougou.com
pop ecx
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5c]
push eax
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x5c]
push eax
push 1
push 0
push str.Start_Page
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x416ea5
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0xd4]
call sub.MFC42.DLL_CString::operator_2
jmp 0x416e38
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x24]
push dword [eax + ecx*4 + 4]
lea ecx, [esi + 0xd8]
call sub.MFC42.DLL_CString::operator_2
mov dword [esi + 0xdc], 1
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
je 0x416ea2
push 0x4fa1b0
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x416ea2
push 0x24
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp dword [esi], 0x24
jne 0x416e9b
cmp dword [esi + 4], ebx
je 0x416e9b
cmp dword [esi + 8], ebx
jne 0x416e9b
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x416e7d
cmp eax, 1
jne 0x416e9b
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x416e9b
push ebx
push ebx
push dword [0x53015c]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret