Function at 0x4047b0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Delete file
Get common file path
Move file
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa84
mov eax, dword [0x464ce4]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
mov dword [esp + 0x14], 0
call fcn.0043871c
add esp, 4
push edx
push eax
push 0x468703
push str._s_t_d
lea edx, [esp + 0x698]
call fcn.00405e30
add esp, 0x10
push 0x45dd44
lea ebx, [esp + 0x14]
lea edx, [esp + 0x68c]
mov ecx, edi
call fcn.00403e60
mov esi, eax
test esi, esi
jne 0x40484d
mov ecx, dword [edi + 0x268]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 1
call edx
mov ecx, dword [edi + 0x2a4]
push 0x64
call fcn.0040cf52
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x480]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
call fcn.0043871c
add esp, 4
push edx
push eax
lea ecx, [esp + 0x488]
push ecx
push str._supdate__d.txt
lea edx, [esp + 0x80]
call fcn.00405df0
push 0x45db70
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00438b75
add esp, 0x1c
test eax, eax
jne 0x4048d3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 1
push esi
call fcn.00438d13
mov eax, dword [esp + 0x24]
push eax
call fcn.00438f17
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
call fcn.00438fe0
add esp, 4
mov bl, 1
jmp 0x4048d5
xor bl, bl
push esi
call fcn.00438a6d
add esp, 4
test bl, bl
jne 0x40491f
mov edx, dword [edi + 4]
push 0x40
push 0x45d8c8
push 0x45dd70
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [edi + 0x268]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
push 1
call edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x70]
mov ecx, edi
call fcn.00404d90
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 4
push 0
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push str.LineageResourceMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edi
mov dword [esp + 0x10], eax
call fcn.00404b10
test eax, eax
je 0x404a80
cmp dword [esp + 0x10], 0xb7
jne 0x40499d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 4]
push 0
push 0x45d8c8
push 0x45ddb4
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405020
test al, al
je 0x404ab4
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.Lineage
call ebx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404a03
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xdc
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push str.Lineage
call ebx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4049c6
push 0x44
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0043a230
add esp, 0xc
lea edx, [esp + 0x278]
push edx
push 0x104
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.eat.exe
lea eax, [esp + 0x27c]
push 0x104
push eax
call fcn.0043976b
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x298]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404a80
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x2a4]
push 0x64
call fcn.0040cf52
mov ecx, dword [edi + 0x268]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd8]
push 1
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa80]
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
push 0x40
push 0x45d8c8
push 0x45ddec
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [edi + 0x268]
mov edx, dword [ecx]
mov eax, dword [edx + 0xd8]
push 1
call eax
mov ecx, dword [edi + 0x2a4]
push 0x64
call fcn.0040cf52
mov ecx, dword [edi + 0x2a4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x45de10
call eax
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043836a
mov esp, ebp
pop ebp
ret