Function at 0x401000
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 [0x414004]
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.004033b0
xor eax, eax
mov dword [esp + 0xd8], edi
add esp, 8
mov dword [esp + 0xd4], 7
lea ecx, [esp + 0xc0]
mov word [esp + 0xc0], ax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 7
push 0x104
mov word [esp + 0x7c], ax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], 7
mov word [esp + 0xac], ax
call fcn.00401550
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.00401550
push str._samp.dll
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x90]
call fcn.00401800
add esp, 4
lea ecx, [esp + 0x74]
push eax
call fcn.00401630
mov edx, dword [esp + 0xa0]
cmp edx, 8
jb 0x401139
mov ecx, dword [esp + 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40112f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40152e
push edx
push ecx
call fcn.00401fa2
add esp, 8
push str.gta_sa.exe
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x90]
call fcn.00401800
add esp, 4
lea ecx, [esp + 0xa4]
push eax
call fcn.00401630
mov edx, dword [esp + 0xa0]
cmp edx, 8
jb 0x4011a3
mov ecx, dword [esp + 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401199
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401533
push edx
push ecx
call fcn.00401fa2
add esp, 8
test esi, esi
je 0x4012d2
push str.LoadLibraryW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4012d2
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 0x4012d2
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 0x4012b4
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 0x401298
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 0x401298
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4012a0
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 0x4012bc
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 0x4012da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x40141a
xor eax, eax
mov dword [esp + 0xe4], 0
push eax
push eax
mov word [esp + 0xdc], ax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0x400
push edi
push 0
push 0x1300
mov dword [esp + 0x104], 7
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
xor ecx, ecx
mov dword [esp + 0x9c], 0
push eax
push dword [esp + 0x10]
mov word [esp + 0x94], cx
lea ecx, [esp + 0x94]
mov dword [esp + 0xa8], 7
call fcn.004016c0
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0xd8]
call fcn.00401630
mov edx, dword [esp + 0xa0]
cmp edx, 8
jb 0x4013a7
mov ecx, dword [esp + 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40139d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401538
push edx
push ecx
call fcn.00401fa2
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 0x40141a
mov ecx, dword [esp + 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401410
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40153d
push edx
push ecx
call fcn.00401fa2
add esp, 8
mov edx, dword [esp + 0xb8]
cmp edx, 8
jb 0x40145c
mov ecx, dword [esp + 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401452
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401542
push edx
push ecx
call fcn.00401fa2
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 0x4014bb
mov ecx, dword [esp + 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4014b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401542
push edx
push ecx
call fcn.00401fa2
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 0x401516
mov ecx, dword [esp + 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40150c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401542
push edx
push ecx
call fcn.00401fa2
add esp, 8
mov ecx, dword [esp + 0xec]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00401f61
mov esp, ebp
pop ebp
ret 0x10
call fcn.004056df
call fcn.004056df
call fcn.004056df
call fcn.004056df
call fcn.004056df
int3