Function at 0x401160
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Create process on windows
Create thread
Get common file path
Inject thread
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xe8
mov eax, dword [0x416004]
xor eax, esp
mov dword [esp + 0xe4], eax
push esi
push edi
push str.kernel32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x44
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x2c]
movaps xmmword [esp + 0x14], xmm0
push edi
push eax
call fcn.00403130
add esp, 8
mov dword [esp + 0xc0], edi
lea ecx, [esp + 0xc0]
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], 7
mov dword [esp + 0x78], edi
push 0x104
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], 7
mov dword [esp + 0xac], edi
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], 7
call fcn.004016b0
cmp dword [esp + 0xd0], 8
lea eax, [esp + 0xbc]
cmovae eax, dword [esp + 0xbc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ecx
push eax
lea ecx, [esp + 0xc4]
call fcn.004016b0
push str._samp.dll
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x90]
call fcn.00401910
add esp, 4
lea ecx, [esp + 0x74]
push eax
call fcn.00401730
mov edx, dword [esp + 0xa0]
cmp edx, 8
jb 0x401294
mov ecx, dword [esp + 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40128a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401691
push edx
push ecx
call fcn.00401d03
add esp, 8
push str.gta_sa.exe
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x90]
call fcn.00401910
add esp, 4
lea ecx, [esp + 0xa4]
push eax
call fcn.00401730
mov edx, dword [esp + 0xa0]
cmp edx, 8
jb 0x4012fe
mov ecx, dword [esp + 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4012f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401696
push edx
push ecx
call fcn.00401d03
add esp, 8
test esi, esi
je 0x40142d
push str.LoadLibraryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0xc], eax
test eax, eax
je 0x40142d
cmp dword [esp + 0xb8], 8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0xc
push 0
push 0
lea esi, [esp + 0xc0]
cmovae esi, dword [esp + 0xc0]
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40142d
mov eax, dword [esp + 0x84]
push 0x40
push 0x3000
lea eax, [eax*2 + 2]
push eax
push 0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40140f
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x74]
cmp dword [esp + 0x88], 8
push 0
cmovae ecx, dword [esp + 0x78]
lea eax, [eax*2 + 2]
push eax
push ecx
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4013f3
push 0
push 4
push esi
push dword [esp + 0x18]
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4013f3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4013fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 0x8000
push 0
push esi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x401417
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x40157d
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0xdc], 0
push eax
push 0x400
push edi
push 0
push 0x1300
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 7
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push eax
push dword [esp + 0x10]
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 7
call fcn.004017c0
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xd8]
call fcn.00401730
mov edx, dword [esp + 0xa0]
cmp edx, 8
jb 0x40150a
mov ecx, dword [esp + 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401500
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40169b
push edx
push ecx
call fcn.00401d03
add esp, 8
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0xe8], 8
lea eax, [esp + 0xd4]
push 0x10
cmovae eax, dword [esp + 0xd8]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esp + 0xe8]
cmp edx, 8
jb 0x40157d
mov ecx, dword [esp + 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401573
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a0
push edx
push ecx
call fcn.00401d03
add esp, 8
mov edx, dword [esp + 0xb8]
cmp edx, 8
jb 0x4015bf
mov ecx, dword [esp + 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4015b5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a5
push edx
push ecx
call fcn.00401d03
add esp, 8
mov edx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 7
mov word [esp + 0xa4], ax
cmp edx, 8
jb 0x40161e
mov ecx, dword [esp + 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401614
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a5
push edx
push ecx
call fcn.00401d03
add esp, 8
mov edx, dword [esp + 0xd0]
xor eax, eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 7
mov word [esp + 0x74], ax
cmp edx, 8
jb 0x401679
mov ecx, dword [esp + 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40166f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016a5
push edx
push ecx
call fcn.00401d03
add esp, 8
mov ecx, dword [esp + 0xec]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00401cc5
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404e6c
call fcn.00404e6c
call fcn.00404e6c
call fcn.00404e6c
call fcn.00404e6c
int3