Function at 0x44ca90
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Create thread
Execute shellcode via indirect call
Get file attributes
Get graphical window text
Hide graphical window
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x398
mov eax, dword [0x46300c]
xor eax, esp
mov dword [esp + 0x394], eax
push esi
push edi
push str.Need_For_Speed_III:_Hot_Pursuit
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x44cae9
push 0x10
push str.Error
push str.The_game_is_already_running._nIf_you_want_to_run_the_mod_menu__just_run_NFS_III_LU.exe_after_closing_the_game.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x394]
xor ecx, esp
call fcn.00452309
mov esp, ebp
pop ebp
ret 0x10
push str.NFS_III_LU
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x44cb33
push 0
push str.Warning
push str.The_Mod_Menu_is_already_running._nPlease_click_on_the_game_window_and_try_opening_Menu_via_HOME_key.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x394]
xor ecx, esp
call fcn.00452309
mov esp, ebp
pop ebp
ret 0x10
push 0x40
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push str.nfs3.exe
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44cf9e
call esi
cmp eax, 2
je 0x44cf9e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push str.nfs3.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne byte [esp + 0x17]
call esi
push dword [esp + 0x18]
call esi
cmp byte [esp + 0x13], 0
je 0x44cfb2
mov dword [esp + 0x14], str.LUFiles_Back.wav
xor esi, esi
mov dword [esp + 0x18], str.LUFiles_EngineStart.wav
mov dword [esp + 0x1c], str.LUFiles_Enable.wav
mov dword [esp + 0x20], str.LUFiles_Disable.wav
mov dword [esp + 0x24], str.LUFiles_Hover.wav
mov dword [esp + 0x28], str.LUFiles_Click.wav
nop dword [eax]
nop dword [eax + eax]
push 0xb8
lea eax, [esp + 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [esp + esi*4 + 0x20]
lea ecx, [esp + 0x8c]
push edi
call fcn.0044db10
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 4]
test byte [esp + eax + 0x8c], 6
jne 0x44cf57
mov dword [esp + eax + 0x80], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0x7c], eax
lea ecx, [esp + 0x90]
call fcn.0044da30
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [esp + 0xf0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
inc esi
cmp esi, 6
jb 0x44cbf0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
lea eax, [esp + 0x2c]
push eax
call esi
push eax
call edi
call fcn.0043beb0
cmp eax, dword [esp + 0x2c]
jne 0x44cc90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x463bd8], eax
call esi
lea ecx, [esp + 0x14]
mov dword [0x463bd0], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
mov ecx, dword [esp + 0x18]
mov dword [0x463bc4], eax
mov eax, dword [esp + 0x20]
sub eax, ecx
mov dword [0x463bd4], edx
mov dword [0x463bc8], eax
lea eax, [esp + 0x80]
push 0x104
push eax
push dword [0x463bd0]
mov dword [0x463bcc], ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x104
lea eax, [esp + 0x18c]
push eax
push dword [0x463bd0]
call dword [sym.imp.USER32.dll_GetClassNameA]
push 0x104
lea eax, [esp + 0x294]
push eax
push 0
push dword [0x463bd8]
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
lea ecx, [esp + 0x30]
call fcn.0043bf60
cmp dword [eax + 0x14], 0x10
jb 0x44cd51
mov eax, dword [eax]
mov edx, dword [esp + 0x44]
mov dword [0x463b80], eax
cmp edx, 0x10
jb 0x44cd8e
mov ecx, dword [esp + 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44cd84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44cd84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00452514
add esp, 8
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x38], 0x30
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x44c900
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
call esi
push 0x7f00
push 0
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
mov dword [esp + 0x50], eax
mov eax, dword [0x463b80]
push 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
call esi
movups xmm0, xmmword [esp + 0x30]
mov dword [esp + 0x5c], eax
push 0x463b84
movups xmmword [0x463b84], xmm0
movups xmm0, xmmword [esp + 0x44]
movups xmmword [0x463b94], xmm0
movups xmm0, xmmword [esp + 0x54]
movups xmmword [0x463ba4], xmm0
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov eax, dword [0x463bd0]
test eax, eax
je 0x44ce89
push 0x4651c0
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x4651e0
push dword [0x463bd0]
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x4651e0]
mov ecx, dword [0x4651cc]
mov dword [0x4651c0], eax
mov eax, dword [0x4651e4]
mov dword [0x4651c4], eax
mov eax, dword [0x4651c8]
mov dword [0x463bc4], eax
mov dword [0x463bc8], ecx
jmp 0x44ce94
mov eax, dword [0x463bc4]
mov ecx, dword [0x463bc8]
push 0
push 0
push 0
push 0
push ecx
push eax
push dword [0x463bcc]
mov eax, dword [0x463b80]
push dword [0x463bd4]
push 0x90000000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x463078
push eax
mov dword [0x463bb4], eax
call dword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
push 0x800a0
push 0xffffffffffffffec
push dword [0x463bb4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push dword [0x463bb4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x463bb4]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.0044c410
push 0
push 0
push 0
push 0x44ca70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.0043c1f0
mov esi, dword [0x4638ac]
push 0x463b0c
push 0x40
push 6
add esi, 0xc5fcf
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 6
push 0x46309c
push esi
push dword [0x4638a4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop dword [eax]
call fcn.0044c0d0
jmp 0x44cf50
push str.Error:_Sound_file_not_found:
lea ecx, [esp + 0x34]
call fcn.0044f060
push edi
lea ecx, [esp + 0x34]
call fcn.0044f000
push str._n_nPlease_ensure_this_file_is_in_same_folder_as_the_program._If_file_is_still_not_found__check_that_it_has_correct_name_and_in_correct_location.
lea ecx, [esp + 0x34]
call fcn.0044f000
push 0x10
push str.Error
lea ecx, [esp + 0x38]
call fcn.0044ef00
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x10
push str.Error
push str.Failed_to_launch_game_process__Make_sure_Mod_Menu_has_been_in_the_game_directory_and_you_have_an_exe_named_nfs3.exe.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x39c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00452309
mov esp, ebp
pop ebp
ret 0x10