Function at 0x4317a6
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 [0x4c3a10]
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 0x431e1c
cmp dword [edi + 0x6c], esi
je 0x431e1c
lea ebx, [edi + 0x20]
cmp dword [ebx + 0x18], 8
jb 0x4317e5
mov eax, dword [ebx + 4]
jmp 0x4317e8
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4317fa
push 3
jmp 0x431e1e
cmp dword [edi + 0x70], 8
jb 0x431805
mov edi, dword [edi + 0x5c]
jmp 0x431808
add edi, 0x5c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43181a
push 4
jmp 0x431e1e
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x74], 0x44
call fcn.004766d0
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.00409d9a
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.0041318d
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a62
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x431877
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.004766d0
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.00409d9a
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041318d
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019ab
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a62
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a62
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x431901
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.004766d0
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.00409d9a
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041318d
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019ab
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a62
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a62
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x28], 0xfffffffe
jae 0x43198f
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 0x4319c8
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 0x4319d4
mov dword [ebp + 0x2c], 1
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.004766d0
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.00409d9a
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041318d
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019ab
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a62
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a62
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x431a37
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 0x431a70
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 0x431a7c
mov dword [ebp + 0x2c], 1
cmp dword [ebp + 0x2c], esi
jne 0x431a96
push 5
pop edi
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a62
mov eax, edi
jmp 0x431e1f
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 connect
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 connect
call edi
cmp ebx, esi
je 0x431ae1
push 7
jmp 0x431a83
cmp eax, esi
jne 0x431add
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401900
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431afe
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 0x431b25
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.00401a3e
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431b4e
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 0x431b6f
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.00401a3e
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431b98
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 0x431bb9
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.00401a3e
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431be2
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 0x431c03
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 0x431c24
mov ecx, dword [ebx + 0x5c]
jmp 0x431c27
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 0x431c49
mov ebx, dword [ebx + 0x5c]
jmp 0x431c4c
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 0x431e0a
cmp dword [ebp + 0x38], esi
jne 0x431e0a
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 0x431cac
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a62
jmp 0x431add
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 0x431c9c
lea eax, [ebp + 0x14]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin
push connect
call ebx
test eax, eax
jne 0x431c9c
lea eax, [ebp + 0x10]
push eax
push str.SOFTWAREMozillaPlugins_xunlei.com_npxunlei_version1.0.0.2MimeTypes_application_np_xunlei_plugin.2
push connect
call ebx
test eax, eax
jne 0x431c9c
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401a3e
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431d01
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 0x431d22
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 0x431d3e
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 0x431d5a
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 0x4b31e4
lea ecx, [ebp + 0x58]
call fcn.00401a3e
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431d83
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 0x431da4
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 0x431dc0
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 0x431ddc
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 0x431e0a
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a62
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a62
xor eax, eax
jmp 0x431e1f
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a62
push 8
jmp 0x431a83
push 2
pop eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047674a
add ebp, 0x78
leave
ret