Function at 0x4077d0
Capabilities:
Allocate or change rwx memory
Check mutex and terminate process on windows
Check mutex on windows
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4792c8
mov eax, dword fs:[0]
push eax
sub esp, 0x124
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 edi, ecx
mov dword [ebp - 0x130], edi
jmp 0x407818
call dword [sym.imp.mfc140u.dll_CDialog::OnInitDialog]
push str.GPXHMAIN.exe
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
cmp eax, 0xb7
jne 0x407842
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.mfc140u.dll_CMenu::FromHandle]
mov ebx, eax
test ebx, ebx
je 0x4078bb
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x65
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
mov eax, dword [ebp - 0x118]
cmp dword [eax - 0xc], 0
je 0x4078a8
mov esi, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push 0
push 0x800
push dword [ebx + 4]
call esi
push dword [ebp - 0x118]
push 0x10
push 0
push dword [ebx + 4]
call esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push dword [edi + 0xd0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [edi + 0x20]
call esi
push dword [edi + 0xd0]
push 0
push 0x80
push dword [edi + 0x20]
call esi
push str.JQ.1.18
mov ecx, edi
call dword [sym.imp.mfc140u.dll_CWnd::SetWindowTextW]
mov eax, dword [edi + 0x6dc]
lea ebx, [edi + 0x6dc]
push 0xe801
push 0x50008200
push 0
push edi
mov ecx, ebx
call dword [eax + 0x1b0]
lea eax, [ebp - 0x12c]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x120]
mov ecx, ebx
push 1
push 0x19
push dword [ebp - 0x124]
add eax, 0xffffffe2
push eax
push 0
call dword [sym.imp.mfc140u.dll_CWnd::MoveWindow]
push 3
push 0x494a5c
mov ecx, ebx
call dword [sym.imp.mfc140u.dll_CStatusBar::SetIndicators]
mov edi, dword [sym.imp.mfc140u.dll_CWnd::GetDlgCtrlID]
mov ecx, ebx
push 0x96
push 0x8000000
call edi
mov esi, dword [sym.imp.mfc140u.dll_CStatusBar::SetPaneInfo]
mov ecx, ebx
push eax
push 0
call esi
push 0x12c
push 0x8000000
mov ecx, ebx
call edi
push eax
push 1
mov ecx, ebx
call esi
push 0x1e
push 0x8000000
mov ecx, ebx
call edi
push eax
push 2
mov ecx, ebx
call esi
mov edi, dword [ebp - 0x130]
mov ecx, edi
push 1
push 0
push 0
push 0
push 0
push 0xe8ff
push 0xe800
call dword [sym.imp.mfc140u.dll_CWnd::RepositionBars]
mov esi, dword [sym.imp.mfc140u.dll_CWnd::ShowWindow]
mov ecx, ebx
push 1
call esi
mov dword [0x4958ec], ebx
push 0
lea ecx, [edi + 0xc2c]
call esi
push 0
lea ecx, [edi + 0xcac]
call esi
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 0x40
push 0x563
push dword [0x4944a0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push str.KartMap_Shared_gsppsl
lea eax, [ebp - 0x114]
push 0x48bdf0
push eax
call fcn.00403c90
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
push 0x1000
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x407a69
push 0x1000
push 0
push 0
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00407ce0
call fcn.004070b0
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 3
mov dword [ebp - 4], 1
call dword [sym.imp.plfl32.dll_P_GetDataValue]
push eax
lea eax, [ebp - 0x118]
push 0x48beb8
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoll]
add esp, 0x10
mov dword [0x49635c], eax
test eax, eax
je 0x407ac7
push ecx
mov ecx, dword [edi + 0x20]
call fcn.00401e80
add esp, 4
lea ecx, [ebp - 0x118]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x407ae3
mov eax, 1
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