Function at 0x42e77c
Capabilities:
Check if file exists
Create process on windows
Delete registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xec
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp + 0x38], edi
cmp dword [edi + 0x34], esi
je 0x42edf2
cmp dword [edi + 0x6c], esi
je 0x42edf2
lea ebx, [edi + 0x20]
cmp dword [ebx + 0x18], 8
jb 0x42e7bb
mov eax, dword [ebx + 4]
jmp 0x42e7be
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e7d0
push 3
jmp 0x42edf4
cmp dword [edi + 0x70], 8
jb 0x42e7db
mov edi, dword [edi + 0x5c]
jmp 0x42e7de
add edi, 0x5c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e7f0
push 4
jmp 0x42edf4
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x74], 0x44
call fcn.00470920
xor eax, eax
mov dword [ebp + 0x18], esi
lea edi, [ebp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push str.___u__s
stosd dword es:[edi], eax
push ebx
mov edi, str.regsvr32.exe__
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00409a99
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.00410e7f
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42e84d
lea eax, [ebp + 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
push 0xfa0
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00470920
mov eax, dword [ebp + 0x38]
add esp, 0xc
add eax, 0x3c
push str.___u__s
push eax
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00409a99
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00410e7f
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019a1
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42e8d7
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
push 0xfa0
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
mov dword [ebp + 0x2c], esi
call fcn.00470920
mov eax, dword [ebp + 0x38]
add esp, 0xc
push str.___s
add eax, 0x20
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00409a99
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00410e7f
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019a1
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x28], 0xfffffffe
jae 0x42e965
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
cmp dword [ebp + 0x18], esi
je 0x42e99e
push 0xffffffffffffffff
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], esi
jne 0x42e9aa
mov dword [ebp + 0x2c], 1
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.00470920
mov eax, dword [ebp + 0x38]
add esp, 0xc
push str.___s
add eax, 0x3c
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00409a99
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00410e7f
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019a1
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a58
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42ea0d
lea eax, [ebp + 0x40]
lea ecx, [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push esi
push esi
push 0x20
push esi
push esi
push esi
push eax
push esi
call ebx
cmp dword [ebp + 0x18], esi
je 0x42ea46
push 0xffffffffffffffff
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x28], esi
jne 0x42ea52
mov dword [ebp + 0x2c], 1
cmp dword [ebp + 0x2c], esi
jne 0x42ea6c
push 5
pop edi
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a58
mov eax, edi
jmp 0x42edf5
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.1
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.1
push closesocket
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp + 0x34]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2
push ebx
call edi
mov ebx, eax
lea eax, [ebp + 0x30]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2
push closesocket
call edi
cmp ebx, esi
je 0x42eab7
push 7
jmp 0x42ea59
cmp eax, esi
jne 0x42eab3
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.004018f6
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ead4
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Description
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42eafb
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
push str.XunLei_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42eb24
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.ProductName
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42eb45
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
push str.1.0.0.2
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42eb6e
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Version
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42eb8f
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
push str.Thunder
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ebb8
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Vendor
push ebx
push dword [ebp + 0x34]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ebd9
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x30]
call edi
mov ebx, dword [ebp + 0x38]
cmp dword [ebx + 0x70], 8
mov eax, dword [ebx + 0x6c]
jb 0x42ebfa
mov ecx, dword [ebx + 0x5c]
jmp 0x42ebfd
lea ecx, [ebx + 0x5c]
add eax, eax
push eax
push ecx
push 1
push esi
push str.Path
push dword [ebp + 0x34]
call edi
cmp dword [ebx + 0x70], 8
mov dword [ebp + 0x2c], eax
mov eax, dword [ebx + 0x6c]
jb 0x42ec1f
mov ebx, dword [ebx + 0x5c]
jmp 0x42ec22
add ebx, 0x5c
add eax, eax
push eax
push ebx
push 1
push esi
push str.Path
push dword [ebp + 0x30]
call edi
push dword [ebp + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x38], eax
call ebx
push dword [ebp + 0x30]
call ebx
cmp dword [ebp + 0x2c], esi
jne 0x42ede0
cmp dword [ebp + 0x38], esi
jne 0x42ede0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp + 0xc]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
je 0x42ec82
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a58
jmp 0x42eab3
lea eax, [ebp + 8]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin.2
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x42ec72
lea eax, [ebp + 0x14]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin
push closesocket
call ebx
test eax, eax
jne 0x42ec72
lea eax, [ebp + 0x10]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin.2
push closesocket
call ebx
test eax, eax
jne 0x42ec72
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ecd7
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Description
push ebx
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ecf8
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 8]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ed14
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x14]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ed30
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x10]
call edi
push 0x4acb64
lea ecx, [ebp + 0x58]
call fcn.00401a34
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ed59
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
mov ebx, str.Suffixes
push ebx
push dword [ebp + 0xc]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ed7a
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 8]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42ed96
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x14]
call edi
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42edb2
lea eax, [ebp + 0x5c]
mov ecx, dword [ebp + 0x6c]
add ecx, ecx
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x42ede0
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a58
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a58
xor eax, eax
jmp 0x42edf5
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a58
push 8
jmp 0x42ea59
push 2
pop eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
add ebp, 0x78
leave
ret