Function at 0x4018a0
Capabilities:
Check if file exists
Create process on windows
Create thread
Enumerate process modules
Get file attributes
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
push 0x4056d4
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.__________________Welcome_to_Need_for_Speed_III:_Hot_Pursuit_Instant_Tricks_Tool___Version_2.0_26.12.2023__________________
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4052c0
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.__________Credits__________
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Programmer:_Jericho
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4052c0
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.For_more_NFS_games_stuffs_and_multiplayer_gameplay__you_can_visit_my_youtube:_https:__www.youtube.com_channel_UCTo7qA9enpd3uCC2jIzKGWw
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Visit_our_discord_server_to_join_Multiplayer_Online_races:_https:__discord.gg_JMaypEd
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.______________________________________________________________________________________________________________________________________
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
call fcn.00401480
push 0x40
lea eax, [esp + 0x260]
mov dword [esp + 0x25c], 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 0x401f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401f60
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x25c]
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 + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne bl
call esi
push dword [esp + 0x14]
call esi
test bl, bl
je 0x401f95
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.__________Status__________
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4052c0
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._Player_1_
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [0x408019], 0
mov edi, 0x4052ec
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov esi, edi
mov ebx, 0x4052f0
mov edx, str.Steering:
push 0x4030d0
cmove esi, ebx
call fcn.00402ea0
push ecx
mov edx, esi
mov ecx, eax
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [0x408595], 0
mov esi, edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Acceleration:
push 0x4030d0
cmove esi, ebx
call fcn.00402ea0
push ecx
mov edx, esi
mov ecx, eax
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [0x4085a1], 0
mov esi, edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Braking:
push 0x4030d0
cmove esi, ebx
call fcn.00402ea0
push ecx
mov edx, esi
mov ecx, eax
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4052c0
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._Player_2_
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [0x408018], 0
mov esi, edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Steering:
push 0x4030d0
cmove esi, ebx
call fcn.00402ea0
push ecx
mov edx, esi
mov ecx, eax
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [0x408597], 0
mov esi, edi
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Acceleration:
push 0x4030d0
cmove esi, ebx
call fcn.00402ea0
push ecx
mov edx, esi
mov ecx, eax
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [0x408594], 0
mov edx, str.Braking:
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x4030d0
cmove edi, ebx
call fcn.00402ea0
push ecx
mov edx, edi
mov ecx, eax
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push 0
push 0
push 0x401880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00401220
push eax
push 0
push 0x1fffff
mov dword [0x408584], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [0x408584]
mov dword [0x408588], eax
push 0x18
mov dword [esp + 0x28], 0x224
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x401cf9
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
nop dword [eax]
mov eax, str.nfs3.exe
lea ecx, [esp + 0x40]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401ce0
test dl, dl
je 0x401cdc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401ce0
add ecx, 2
add eax, 2
test dl, dl
jne 0x401cc0
xor eax, eax
jmp 0x401ce5
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f49
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x401cb0
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov edi, dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [0x40858c], eax
nop word [eax + eax]
push 0
push 1
push 0x408596
add eax, 0x4b5350
push eax
push dword [0x408588]
call esi
mov eax, dword [0x40858c]
push 0
push 4
push 0x40859c
add eax, 0x2fbb40
push eax
push dword [0x408588]
call esi
mov eax, dword [0x40858c]
push 0
push 1
push 0x4085a0
add eax, 0x2fd3b0
push eax
push dword [0x408588]
call esi
cmp dword [0x40859c], 0x20f0
jne 0x401e0a
push 0
lea eax, [esp + 0x254]
push eax
push 0
push 0x4085a4
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
je 0x401f5a
cmp dword [esp + 0x250], 0
je 0x401dc0
call fcn.00401300
push 0
push 0
push 0x4085a4
call edi
test eax, eax
je 0x401fad
cmp byte [0x4085a0], 1
jne 0x401e0a
push 0
lea eax, [esp + 0x258]
push eax
push 0
push 0x408590
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
je 0x401f5a
cmp dword [esp + 0x254], 0
je 0x401e0a
call fcn.004013a0
push 0
push 0
push 0x408590
call edi
test eax, eax
je 0x401fad
cmp byte [0x408596], 1
jne 0x401f34
cmp byte [0x408019], 0
lea ecx, [esp + 0x24a]
mov eax, dword [0x40858c]
sete byte [esp + 0x24a]
cmp byte [0x408595], 0
push 0
sete byte [esp + 0x24f]
cmp byte [0x4085a1], 0
push 1
lea esi, [eax + 0x2fd2e0]
sete byte [esp + 0x254]
lea edi, [eax + 0x2fd2e4]
add eax, 0x2fd2dc
push ecx
push eax
push dword [0x408588]
call ebx
push 0
push 1
lea eax, [esp + 0x253]
push eax
push esi
push dword [0x408588]
call ebx
push 0
push 1
lea eax, [esp + 0x254]
push eax
push edi
push dword [0x408588]
call ebx
cmp byte [0x4085a0], 1
jne 0x401f28
cmp byte [0x408018], 0
lea ecx, [esp + 0x24d]
mov eax, dword [0x40858c]
sete byte [esp + 0x24d]
cmp byte [0x408597], 0
push 0
sete byte [esp + 0x252]
cmp byte [0x408594], 0
push 1
lea esi, [eax + 0x2fd34c]
sete byte [esp + 0x257]
lea edi, [eax + 0x2fd350]
add eax, 0x2fd348
push ecx
push eax
push dword [0x408588]
call ebx
push 0
push 1
lea eax, [esp + 0x256]
push eax
push esi
push dword [0x408588]
call ebx
push 0
push 1
lea eax, [esp + 0x257]
push eax
push edi
push dword [0x408588]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x40858c]
jmp 0x401d20
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov eax, dword [esp + 0x34]
jmp 0x401d03
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
push 0x4030d0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Error:_nfs3.exe_not_found
call fcn.00402ea0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0x10
push str.ERROR
push str.Failed_to_launch_game_process__Make_sure_Tool_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 + 0x2a4]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004034a2
mov esp, ebp
pop ebp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3