Function at 0x405040
Capabilities:
Enumerate processes
Read file via mapping
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478db4
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x494014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2a4], esi
mov edi, dword [ebp + 8]
push 0
push 0xf
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x29c], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x290]
push 0x228
push 0
push eax
mov dword [ebp - 0x2ac], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x294], 0x22c
lea ecx, [ebp - 0x20]
push 0x48bc70
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
push str.G_Game.exe
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__8]
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x405389
nop
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x40515d
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x48bcac
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
add esp, 0xc
push dword [ebp - 0x14]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
jne 0x405349
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x405327
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push dword [ebp - 0x28c]
push 0x48bc7c
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
add esp, 0xc
push dword [ebp - 0x18]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov dword [ebp - 0x298], esi
test esi, esi
je 0x40530b
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x405302
mov edx, dword [ebp - 0x2a4]
cmp dword [ebx], edx
jne 0x4052fb
mov eax, dword [ebp - 0x28c]
lea esi, [ebx + 0x60]
mov ecx, 0x32
mov dword [ebp - 0x29c], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2a0]
movups xmm0, xmmword [ebx + 0x10]
cmp dword [edi + 8], 0
movups xmmword [edi + 0x3c], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [edi + 0x4c], xmm0
movq xmm0, qword [ebx + 0x30]
movq qword [edi + 0x5c], xmm0
mov dword [edi + 4], edx
jne 0x4052f5
cmp dword [edi + 0x14], 0
jne 0x4052f5
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x4052f5
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x405287
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [ebp - 0x28], eax
add esp, 4
movzx eax, word [ebp - 0x3a]
mov dword [ebp - 0x24], edx
lea ecx, [eax + eax*2]
movzx eax, word [ebp - 0x38]
lea eax, [eax + ecx*8]
imul edi, eax, 0xe10
lea ecx, [ebp - 0x28]
movzx eax, word [ebp - 0x34]
add edi, eax
call fcn.00410c80
lea ecx, [ebp - 0x28]
lea esi, [eax + eax*2]
shl esi, 3
call fcn.00410bd0
add eax, esi
lea ecx, [ebp - 0x28]
imul esi, eax, 0xe10
call fcn.00410b90
add eax, esi
sub eax, edi
cmp eax, 0xf0
ja 0x40535d
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x2a0]
mov esi, dword [ebp - 0x298]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp - 0x29c], 0
jne 0x405389
mov esi, dword [ebp - 0x2a4]
call fcn.00403360
lea eax, [ebp - 0x294]
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405100
jmp 0x405389
mov ecx, dword [ebp - 0x28c]
push eax
mov dword [ebp - 0x29c], ecx
call ebx
lea ecx, [ebp - 0x14]
jmp 0x405383
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x298]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0
push dword [ebp - 0x2a8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x2ac]
call ebx
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041caaf
mov esp, ebp
pop ebp
ret