Function at 0x42cbde
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 [0x4b7f60]
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 0x42d254
cmp dword [edi + 0x6c], esi
je 0x42d254
lea ebx, [edi + 0x20]
cmp dword [ebx + 0x18], 8
jb 0x42cc1d
mov eax, dword [ebx + 4]
jmp 0x42cc20
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42cc32
push 3
jmp 0x42d256
cmp dword [edi + 0x70], 8
jb 0x42cc3d
mov edi, dword [edi + 0x5c]
jmp 0x42cc40
add edi, 0x5c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42cc52
push 4
jmp 0x42d256
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x74], 0x44
call fcn.0046d720
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.00408163
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.0040f2de
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a1c
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42ccaf
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.0046d720
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.00408163
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040f2de
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401965
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a1c
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a1c
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42cd39
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.0046d720
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.00408163
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f2de
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401965
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a1c
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a1c
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x28], 0xfffffffe
jae 0x42cdc7
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 0x42ce00
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 0x42ce0c
mov dword [ebp + 0x2c], 1
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.0046d720
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.00408163
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040f2de
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.00401965
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a1c
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a1c
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x42ce6f
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 0x42cea8
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 0x42ceb4
mov dword [ebp + 0x2c], 1
cmp dword [ebp + 0x2c], esi
jne 0x42cece
push 5
pop edi
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a1c
mov eax, edi
jmp 0x42d257
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 0x42cf19
push 7
jmp 0x42cebb
cmp eax, esi
jne 0x42cf15
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.004018ba
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cf36
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 0x42cf5d
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.004019f8
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cf86
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 0x42cfa7
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.004019f8
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42cfd0
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 0x42cff1
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.004019f8
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42d01a
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 0x42d03b
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 0x42d05c
mov ecx, dword [ebx + 0x5c]
jmp 0x42d05f
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 0x42d081
mov ebx, dword [ebx + 0x5c]
jmp 0x42d084
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 0x42d242
cmp dword [ebp + 0x38], esi
jne 0x42d242
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 0x42d0e4
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a1c
jmp 0x42cf15
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 0x42d0d4
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 0x42d0d4
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 0x42d0d4
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.004019f8
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42d139
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 0x42d15a
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 0x42d176
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 0x42d192
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 0x4a7dec
lea ecx, [ebp + 0x58]
call fcn.004019f8
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x42d1bb
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 0x42d1dc
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 0x42d1f8
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 0x42d214
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 0x42d242
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a1c
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a1c
xor eax, eax
jmp 0x42d257
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a1c
push 8
jmp 0x42cebb
push 2
pop eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d79a
add ebp, 0x78
leave
ret