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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c9f3
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10040018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub eax, 0
je 0x1000257c
sub eax, 1
jne 0x10002581
call fcn.10005770
cmp dword [0x10043124], 0
jne 0x100022a1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x10043124], eax
xor eax, eax
mov ecx, 0x10043120
xchg dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call fcn.10002c90
call fcn.10007500
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 1
jne 0x1000237a
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10042950]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100431d0]
cmp eax, dword [ecx + 4]
jle 0x10002319
push 0x100431d0
call fcn.1000b9e7
add esp, 4
cmp dword [0x100431d0], 0xffffffff
jne 0x10002319
push str.samp.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x100431d0
mov dword [0x100431d4], eax
call fcn.1000b996
add esp, 4
mov edi, dword [0x100431d4]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
lea esi, [edi + 0x6240c]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
mov byte [esi], 0xeb
push eax
push dword [ebp - 0x14]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
lea esi, [edi + 0x607c9]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x12
push esi
call edi
movaps xmm0, xmmword [0x1003a6a0]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
movups xmmword [esi], xmm0
push 0x12
push esi
mov word [esi + 0x10], 0x9090
call edi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push 0x5b2bfd
call edi
mov eax, 0x5b2bfd
mov dword [eax], 0x90909090
mov byte [eax + 4], 0x90
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 5
push 0x5b2bfd
call edi
push 0x1004315c
mov edx, 0x100081d0
mov ecx, 0x4c8220
call fcn.100057c0
test eax, eax
jne 0x1000240c
call fcn.10005770
cmp dword [0x10043124], 0
je 0x10002401
mov edx, dword [0x10043208]
xor eax, eax
test edx, edx
je 0x10002401
mov esi, dword [0x10043200]
mov ecx, esi
cmp dword [ecx], 0x4c8220
je 0x100023f4
inc eax
add ecx, 0x2c
cmp eax, edx
jb 0x100023e2
jmp 0x10002401
cmp eax, 0xffffffff
je 0x10002401
imul eax, eax, 0x2c
or byte [eax + esi + 0x14], 4
xor eax, eax
mov edi, 0x10043120
xchg dword [edi], eax
jmp 0x10002411
mov edi, 0x10043120
push 0x10043158
mov edx, 0x100083b0
mov ecx, 0x6d64f0
call fcn.100057c0
test eax, eax
jne 0x10002473
call fcn.10005770
cmp dword [0x10043124], 0
je 0x1000246f
mov edx, dword [0x10043208]
xor eax, eax
test edx, edx
je 0x1000246f
mov esi, dword [0x10043200]
mov ecx, esi
nop dword [eax + eax]
cmp dword [ecx], 0x6d64f0
je 0x10002462
inc eax
add ecx, 0x2c
cmp eax, edx
jb 0x10002450
jmp 0x1000246f
cmp eax, 0xffffffff
je 0x1000246f
imul eax, eax, 0x2c
or byte [eax + esi + 0x14], 4
xor eax, eax
xchg dword [edi], eax
call fcn.10005a60
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], vtable.std::_Func_impl_no_alloc_class__int___stdcall_DllMain_struct_HINSTANCE_____unsigned_long_int__void__::_5::_lambda_1___void___.0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [0x10042950]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x10043198]
cmp eax, dword [ecx + 4]
jle 0x1000254e
push 0x10043198
call fcn.1000b9e7
add esp, 4
cmp dword [0x10043198], 0xffffffff
jne 0x1000254e
mov byte [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [0x1004317c], xmm0
push 0x38
mov dword [0x1004318c], 0
mov byte [0x1004317c], 0
mov dword [0x10043180], 0
mov dword [0x10043184], 0
call fcn.1000ba4b
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x10043180], eax
mov byte [ebp - 4], 2
push 0x38
mov dword [0x10043188], 0
mov dword [0x1004318c], 0
call fcn.1000ba4b
push 0x1002d3e0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x10043188], eax
call fcn.1000bd80
push 0x10043198
mov byte [ebp - 4], 0
call fcn.1000b996
add esp, 0x10
push ecx
lea eax, [ebp - 0x3c]
mov ecx, 0x1004317c
push eax
push 0x10043188
call fcn.10002a20
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10002581
mov edx, dword [ecx]
lea eax, [ebp - 0x3c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x10002581
call fcn.10007250
mov eax, 1
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.1000b95d
mov esp, ebp
pop ebp
ret 0xc