Function at 0x4054e0
Capabilities:
Create process on windows
Create thread
Inject dll
Inject thread
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42adbf
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x438080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
mov ecx, dword [0x439100]
mov esi, 0x7fffffff
mov eax, esi
movlpd qword [ebp - 0x98], xmm0
sub eax, ecx
movlpd qword [ebp - 0x90], xmm0
movlpd qword [ebp - 0x88], xmm0
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
mov dword [ebp - 0x9c], 0x44
movups xmmword [ebp - 0xac], xmm0
cmp eax, 0xb
jb 0x405c51
cmp dword [0x439104], 0xf
mov eax, 0x4390f0
push 0xb
cmova eax, dword [0x4390f0]
push str.gta_sa.exe
push ecx
push eax
push ecx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x40]
call fcn.00413580
mov dword [ebp - 0xb0], 4
mov dword [ebp - 4], 0
mov ecx, 0x439144
cmp dword [0x439158], 0xf
mov edi, dword [0x439154]
mov edx, edi
cmova ecx, dword [0x439144]
push 0
push 0x42e9d1
call fcn.00419ca0
add esp, 8
test al, al
jne 0x40563a
mov eax, esi
sub eax, edi
cmp eax, 3
jb 0x405c56
cmp dword [0x439158], 0xf
mov eax, 0x439144
push edi
cmova eax, dword [0x439144]
push eax
push 3
push 0x42ec4c
push ecx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x118]
call fcn.00413580
lea edx, [ebp - 0x118]
mov byte [ebp - 4], 1
mov dword [ebp - 0xb8], edx
mov edi, 0x85
mov dword [ebp - 0xb0], 0x85
jmp 0x405679
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push 0x42e9d1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.00410dd0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
mov edi, 6
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb0], edi
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub eax, ecx
cmp eax, 6
jb 0x405c5b
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 6
cmova eax, dword [ebp - 0x40]
push str._c__n
push ecx
push eax
push ecx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xe8]
call fcn.00413580
or edi, 8
mov dword [ebp - 0xb0], edi
push 0x439110
lea ecx, [ebp - 0xe8]
mov dword [ebp - 4], 3
call fcn.0040c8a0
mov dword [ebp - 0xc0], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xd0], xmm0
mov dword [ebp - 0xbc], 0
or edi, 0x10
movups xmm0, xmmword [eax]
mov dword [ebp - 0xb0], edi
movups xmmword [ebp - 0xd0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xbc]
mov eax, edx
mov ecx, dword [ebp - 0xc0]
sub eax, ecx
push 0x1a
push str.__h_15.235.205.31__p_7777
cmp eax, 0x1a
jb 0x405773
cmp edx, 0xf
lea esi, [ebp - 0xd0]
lea eax, [ecx + 0x1a]
cmova esi, dword [ebp - 0xd0]
add esi, ecx
mov dword [ebp - 0xc0], eax
push esi
call sub.VCRUNTIME140.dll_memmove
mov byte [esi + 0x1a], 0
lea eax, [ebp - 0xd0]
add esp, 0xc
mov esi, 0x7fffffff
jmp 0x40578d
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0xd0]
push dword [ebp - 0xb4]
push 0x1a
call fcn.00411b30
movups xmm0, xmmword [eax]
or edi, 0x20
mov dword [ebp - 0xb0], edi
movups xmmword [ebp - 0x100], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push dword [ebp - 0xb8]
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x58]
call fcn.004133a0
or edi, 0x40
mov dword [ebp - 0xb0], edi
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xec]
cmp ecx, 0xf
jbe 0x405824
mov edx, dword [ebp - 0x100]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40581a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405957
push ecx
push edx
call fcn.00429acf
add esp, 8
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xbc]
cmp ecx, 0xf
jbe 0x405862
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405858
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405957
push ecx
push edx
call fcn.00429acf
add esp, 8
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xd4]
cmp ecx, 0xf
jbe 0x4058bb
mov edx, dword [ebp - 0xe8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4058b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405957
push ecx
push edx
call fcn.00429acf
add esp, 8
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0xf
mov byte [ebp - 0xe8], 0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xb0]
test al, 2
je 0x405923
mov ecx, dword [ebp - 0x14]
and eax, 0xfffffffd
mov dword [ebp - 0xb0], eax
cmp ecx, 0xf
jbe 0x405923
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405913
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405957
push ecx
push edx
call fcn.00429acf
mov eax, dword [ebp - 0xb0]
add esp, 8
mov byte [ebp - 4], 0xb
test al, 1
je 0x405967
mov ecx, dword [ebp - 0x104]
cmp ecx, 0xf
jbe 0x405967
mov edx, dword [ebp - 0x118]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40595d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40595d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00429acf
add esp, 8
cmp dword [0x439104], 0xf
lea edi, [ebp - 0xac]
push edi
mov ecx, 0x4390f0
lea edi, [ebp - 0x9c]
cmova ecx, dword [0x4390f0]
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
lea eax, [ebp - 0x40]
push edi
cmova edx, dword [ebp - 0x58]
cmp dword [ebp - 0x2c], 0xf
push ecx
cmova eax, dword [ebp - 0x40]
push 0
push 0xc
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405ba1
mov ecx, dword [0x439100]
sub esi, ecx
cmp esi, 9
jb 0x405c60
cmp dword [0x439104], 0xf
mov eax, 0x4390f0
push 9
cmova eax, dword [0x4390f0]
push str._samp.dll
push ecx
push eax
push ecx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x28]
call fcn.00413580
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x28]
push dword [ebp - 0xa4]
cmp dword [ebp - 0x14], 0xf
push 0
cmova esi, dword [ebp - 0x28]
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405b28
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, esi
mov dword [ebp - 0xb0], eax
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x405a43
push 4
push 0x3000
sub edx, eax
push edx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, esi
mov dword [ebp - 0xb8], eax
lea ecx, [edx + 1]
mov dword [ebp - 0xb4], ecx
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x405a70
sub edx, dword [ebp - 0xb4]
push 0
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push dword [ebp - 0xb8]
push dword [ebp - 0xb0]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0xb4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x405ab6
push 0x8000
sub esi, ecx
push esi
push dword [ebp - 0xb8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0xb4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Started_gta_sa.exe_with_PID
call fcn.0040fab0
push dword [ebp - 0xa4]
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___unsigned_long_int_]
mov edx, str._and_injected_samp.dll
mov ecx, eax
call fcn.0040fab0
push 0x40fcd0
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_____]
jmp 0x405b59
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_injecting_samp.dll
call fcn.0040fab0
push 0x40fcd0
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 dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xac]
call esi
push dword [ebp - 0xa8]
call esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x405bbe
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405b95
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405b95
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00429acf
add esp, 8
jmp 0x405bbe
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_creating_process_for_gta_sa.exe
call fcn.0040fab0
push 0x40fcd0
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_____]
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x405bee
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405be4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c26
push ecx
push edx
call fcn.00429acf
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x405c36
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405c2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405c2c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00429acf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429726
mov esp, ebp
pop ebp
ret
call fcn.00401590
call fcn.00401590
call fcn.00401590
call fcn.00401590
int3