Function at 0x1003ff60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007774d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10094128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp eax, 0x190
jl 0x10040170
cmp eax, 0xffff
jg 0x10040170
mov edi, dword [ebp + 0xc]
mov ecx, 0x208
mov ebx, dword [ebp + 0x10]
mov esi, edi
cmp esi, ebx
je 0x10040015
nop dword [eax]
mov eax, dword [esi]
movzx eax, word [eax]
mov dword [ebp - 0x18], eax
cmp ax, cx
je 0x1004000e
cmp byte [0x100a1b9e], 0
jne 0x1004000e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6c9348
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x100bfc80
push eax
call fcn.100111d0
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
jne 0x10040153
cmp dword [eax + 0x10], 0x6c9348
ja 0x10040153
mov ecx, 0x208
add esi, 4
cmp esi, ebx
jne 0x1003ffc0
cmp edi, ebx
je 0x10040082
nop dword [eax]
mov eax, dword [edi]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000b390
mov dword [ebp - 0x2c], 2
mov esi, dword [eax]
lea eax, [ebp - 0x28]
push eax
push 0x40
push 2
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp + 8]
setne byte [ebp - 0x24]
mov word [esi], ax
cmp byte [ebp - 0x24], 0
je 0x10040075
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 4
cmp edi, ebx
jne 0x10040020
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x9a639100
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x6c9348
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10012020
mov eax, dword [eax + 4]
test eax, eax
je 0x100400b8
cmp eax, dword [0x100bfce4]
je 0x100400b8
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x24]
call eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x10040121
nop dword [eax]
mov eax, dword [edi]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1000b390
mov dword [ebp - 0x2c], 2
mov esi, dword [eax]
lea eax, [ebp - 0x28]
push eax
push 0x40
push 2
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, 0x208
setne byte [ebp - 0x24]
mov word [esi], ax
cmp byte [ebp - 0x24], 0
je 0x10040117
mov eax, dword [ebp - 0x28]
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp - 0x2c]
mov dword [ebp + 8], eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 4
cmp edi, ebx
jne 0x100400c0
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100401d3
mov ecx, dword [ebp + 0x14]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004014f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100401e5
push ecx
push edi
jmp 0x100401cb
mov eax, dword [ebp - 0x18]
movzx eax, ax
push eax
mov eax, dword [esi]
push eax
push str.CVehicle::ProcessWeapons
push str.Modified_method_detected:__s___0x_08X_is__u_n
push eax
call fcn.10015100
add esp, 0x14
push 0x9a639100
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x6c9348
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10012020
mov eax, dword [eax + 4]
test eax, eax
je 0x100401a0
cmp eax, dword [0x100bfce4]
je 0x100401a0
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x100401d3
mov ecx, dword [ebp + 0x14]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100401c9
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100401e5
push ecx
push edx
call fcn.10053414
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1005eb2f
int3