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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ea4
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x41b014]
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 dword [ebp - 0x2c0], ecx
mov edi, dword [ebp + 8]
push 0
push 0xf
mov dword [ebp - 0x2c4], edi
mov dword [ebp - 0x2b8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2ac]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2b0], 0x22c
lea ecx, [ebp - 0x20]
push 0x415b20
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 - 0x2b0]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4050ec
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x404e77
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push dword [ebp - 0x2c0]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x415b5c
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 0x4050aa
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 - 0x28c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x405053
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push dword [ebp - 0x2a8]
push 0x415b2c
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 - 0x2b4], esi
test esi, esi
je 0x405033
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x405026
mov edx, dword [ebp - 0x2c0]
cmp dword [ebx], edx
jne 0x40501f
mov eax, dword [ebp - 0x2a8]
lea esi, [ebx + 0x60]
mov ecx, 0x32
mov dword [ebp - 0x2b8], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2c4]
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 0x405019
cmp dword [edi + 0x14], 0
jne 0x405019
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x405019
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x404fa7
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
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.00410260
lea ecx, [ebp - 0x28]
lea esi, [eax + eax*2]
shl esi, 3
call fcn.00410220
add eax, esi
lea ecx, [ebp - 0x28]
imul esi, eax, 0xe10
call fcn.004101e0
add eax, esi
sub eax, edi
cmp eax, 0xf0
ja 0x4050c2
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x2b4]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
cmp dword [ebp - 0x2b8], 0
jne 0x4050ec
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call ebx
test eax, eax
je 0x40508d
cmp dword [ebp - 0x58], 0x12
je 0x40508d
lea eax, [ebp - 0x5c]
push eax
call esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call ebx
test eax, eax
jne 0x405065
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404e15
jmp 0x4050ec
mov ecx, dword [ebp - 0x2a8]
push eax
mov dword [ebp - 0x2b8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x14]
jmp 0x4050e6
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x2b4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [ebp - 0x2bc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 - 0x2b8]
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.00411c65
mov esp, ebp
pop ebp
ret