Function at 0x4313cd
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 [0x4c2f90]
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 0x431a43
cmp dword [edi + 0x6c], esi
je 0x431a43
lea ebx, [edi + 0x20]
cmp dword [ebx + 0x18], 8
jb 0x43140c
mov eax, dword [ebx + 4]
jmp 0x43140f
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431421
push 3
jmp 0x431a45
cmp dword [edi + 0x70], 8
jb 0x43142c
mov edi, dword [edi + 0x5c]
jmp 0x43142f
add edi, 0x5c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431441
push 4
jmp 0x431a45
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
mov dword [ebp - 0x74], 0x44
call fcn.004764d0
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.00409daf
add esp, 0xc
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.00413270
add esp, 0xc
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a65
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x43149e
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.004764d0
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.00409daf
add esp, 0xc
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00413270
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019ae
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a65
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a65
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x431528
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.004764d0
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.00409daf
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00413270
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019ae
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a65
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a65
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x28], 0xfffffffe
jae 0x4315b6
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 0x4315ef
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 0x4315fb
mov dword [ebp + 0x2c], 1
push 0x10
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.004764d0
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.00409daf
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00413270
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp + 0x3c]
call fcn.004019ae
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.00401a65
push esi
push 1
lea ecx, [ebp - 0x14]
call fcn.00401a65
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x43165e
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 0x431697
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 0x4316a3
mov dword [ebp + 0x2c], 1
cmp dword [ebp + 0x2c], esi
jne 0x4316bd
push 5
pop edi
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a65
mov eax, edi
jmp 0x431a46
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 0x431708
push 7
jmp 0x4316aa
cmp eax, esi
jne 0x431704
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401903
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431725
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 0x43174c
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.00401a41
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431775
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 0x431796
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.00401a41
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x4317bf
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 0x4317e0
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.00401a41
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431809
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 0x43182a
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 0x43184b
mov ecx, dword [ebx + 0x5c]
jmp 0x43184e
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 0x431870
mov ebx, dword [ebx + 0x5c]
jmp 0x431873
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 0x431a31
cmp dword [ebp + 0x38], esi
jne 0x431a31
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 0x4318d3
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a65
jmp 0x431704
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 0x4318c3
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 0x4318c3
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 0x4318c3
push str.Xunlei_scriptability_Plugin
lea ecx, [ebp + 0x58]
call fcn.00401a41
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x431928
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 0x431949
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 0x431965
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 0x431981
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 0x4b2914
lea ecx, [ebp + 0x58]
call fcn.00401a41
cmp dword [ebp + 0x70], 8
mov eax, dword [ebp + 0x5c]
jae 0x4319aa
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 0x4319cb
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 0x4319e7
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 0x431a03
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 0x431a31
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a65
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00401a65
xor eax, eax
jmp 0x431a46
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00401a65
push 8
jmp 0x4316aa
push 2
pop eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
add ebp, 0x78
leave
ret