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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100563b5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10069040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x1006ef23], 0
je 0x1003f3ad
push 0xf
xor edx, edx
mov ecx, str.Player
call fcn.1000c090
mov edx, 0x1006efdc
mov ecx, str.HEALTH
call fcn.10051b40
add esp, 4
test al, al
je 0x1003ec94
call fcn.10046230
movss xmm1, dword [0x1006307c]
xorps xmm0, xmm0
call fcn.1000fe20
push 0
push 0
sub esp, 8
mov edx, 8
mov ecx, 0x1006250c
push 0x1006e134
call fcn.1002b460
mov al, byte [0x1006ef18]
add esp, 0x14
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [0x1006ee94]
push eax
push ecx
mov ecx, str.INVISIBILITY
call fcn.10050cf0
add esp, 0x14
test al, al
je 0x1003ed07
cmp byte [0x1006ef18], 0
sete byte [0x1006ef18]
call fcn.100463c0
mov al, byte [0x1006ef1a]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push dword [0x1006ee94]
push eax
push ecx
mov ecx, str.GOD_MODE
call fcn.10050cf0
add esp, 0x14
test al, al
je 0x1003ed5e
cmp byte [0x1006ef1a], 0
sete al
mov byte [0x1006ef1a], al
mov byte [ebp - 0x18], al
mov eax, dword [0x1006ef68]
add eax, 0x3a9cd0
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
call dword [ebp - 0x1c]
mov al, byte [0x1006ef19]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push dword [0x1006ee94]
push eax
push ecx
mov ecx, str.INFINITE_AMMO
call fcn.10050cf0
add esp, 0x14
test al, al
je 0x1003edb5
cmp byte [0x1006ef19], 0
sete al
mov byte [0x1006ef19], al
mov byte [ebp - 0x18], al
mov eax, dword [0x1006ef68]
add eax, 0x3a9d20
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
call dword [ebp - 0x1c]
mov al, byte [0x1006ef12]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push dword [0x1006ee94]
push eax
push ecx
mov ecx, str.NOCLIP
call fcn.10050cf0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x14
test al, al
je 0x1003eecb
cmp byte [0x1006ef12], 0
mov esi, dword [0x1006ef88]
sete al
mov byte [0x1006ef12], al
test al, al
je 0x1003ee56
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0xe
push esi
call edi
mov eax, 0x90909090
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push 0xe
push esi
call edi
mov esi, dword [0x1006ef90]
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 2
push esi
call edi
mov eax, 0x9eb
mov word [esi], ax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push 2
jmp 0x1003ee88
lea eax, [ebp - 0x18]
push eax
push 0x40
push 0xe
push esi
call edi
movq xmm0, qword [0x10062834]
movq qword [esi], xmm0
mov eax, dword [0x1006283c]
mov dword [esi + 8], eax
mov ax, word [0x10062840]
mov word [esi + 0xc], ax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 0xe
push esi
call edi
mov al, byte [0x1006ef12]
mov byte [0x1006ef1a], al
mov byte [ebp - 0x44], al
mov eax, dword [0x1006ef68]
add eax, 0x3a9cd0
mov dword [ebp - 0x28], eax
push dword [ebp - 0x44]
call dword [ebp - 0x28]
cmp byte [0x1006ef12], 0
jne 0x1003eec4
mov byte [0x1006ef11], 1
mov byte [0x1006ef10], 1
jmp 0x1003eecb
mov byte [0x1006ef11], 0
mov al, byte [0x1006ef16]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push dword [0x1006ee94]
push eax
push ecx
mov ecx, str.FLASHLIGHT
call fcn.10050cf0
add esp, 0x14
test al, al
je 0x1003ef37
cmp byte [0x1006ef16], 0
mov esi, dword [0x1006ef68]
sete al
add esi, 0xff0a68
mov byte [ebp - 0x21], al
mov byte [0x1006ef16], al
lea eax, [ebp - 0x18]
push eax
push 0x40
push 1
push esi
call edi
mov al, byte [ebp - 0x21]
mov byte [esi], al
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 1
push esi
call edi
mov al, byte [0x1006ef0c]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push dword [0x1006ee94]
push eax
push ecx
mov ecx, str.GET_WEAPON
call fcn.10050cf0
add esp, 0x14
test al, al
je 0x1003efa0
cmp byte [0x1006ef0c], 0
mov esi, dword [0x1006efb0]
sete al
add esi, 0x68
mov byte [ebp - 0x21], al
mov byte [0x1006ef0c], al
lea eax, [ebp - 0x18]
push eax
push 0x40
push 1
push esi
call edi
mov al, byte [ebp - 0x21]
mov byte [esi], al
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push 1
push esi
call edi
mov al, byte [0x1006ef17]
mov dword [ebp - 0x28], 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x2c]
push dword [0x1006ee94]
push eax
push ecx
mov ecx, str.HIDE_HAT
call fcn.10050cf0
add esp, 0x14
test al, al
je 0x1003f085
cmp byte [0x1006ef17], 0
lea edx, [ebp - 0x48]
mov ecx, dword [0x1006ef68]
sete al
mov dword [ebp - 0x48], 0x10
mov byte [0x1006ef17], al
xor al, 1
mov byte [ebp - 0x28], al
lea eax, [ecx + 0x144640]
mov dword [ebp - 0x44], 0
push ecx
mov dword [ebp - 0x18], eax
lea esi, [ecx + 0x1126508]
lea eax, [ebp - 0x40]
push eax
push edx
lea ecx, [ebp - 0x40]
call fcn.10042460
mov edi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
sub edi, edx
sar edi, 2
test edi, edi
je 0x1003f03c
nop
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1003f030
test edx, edx
je 0x1003f079
mov eax, dword [ebp - 0x38]
sub eax, edx
sar eax, 2
lea ecx, [eax*4]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003f06f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003f06f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10054b4d
add esp, 8
mov dword [ebp - 0x44], esi
push dword [ebp - 0x28]
push dword [ebp - 0x44]
call dword [ebp - 0x18]
push ecx
mov edx, 0x1006efdc
mov ecx, str.SET_HAT
call fcn.10051b40
add esp, 4
test al, al
je 0x1003f0a1
call fcn.100466f0
movss xmm1, dword [0x1006307c]
xorps xmm0, xmm0
call fcn.1000fe20
mov edi, dword [0x1006ef04]
lea ecx, [ebp - 0x40]
push 0x1006efe4
call fcn.10042280
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
cmp esi, ecx
je 0x1003f0fd
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1003f0fd
lea eax, [edi + edi*2]
cmp dword [esi + eax*8 + 0x14], 0xf
lea edx, [esi + eax*8]
jbe 0x1003f102
mov edx, dword [edx]
jmp 0x1003f102
mov edx, 0x1005f46c
push 0x24
mov ecx, str.Hats
call fcn.10029770
add esp, 4
mov byte [ebp - 0x21], al
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10042530
cmp byte [ebp - 0x21], 0
je 0x1003f14a
sub esp, 0xc
mov ecx, esp
push 0x1006efe4
call fcn.10042280
mov ecx, 0x1006ef04
call fcn.10050c10
add esp, 0xc
call fcn.10010f20
push ecx
mov edx, 0x1006efdc
mov ecx, str.SET_HEAD
call fcn.10051b40
add esp, 4
test al, al
je 0x1003f166
call fcn.10047200
movss xmm1, dword [0x1006307c]
xorps xmm0, xmm0
call fcn.1000fe20
mov edi, dword [0x1006ef00]
lea ecx, [ebp - 0x40]
push 0x1006eff0
call fcn.10042280
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
cmp esi, ecx
je 0x1003f1c2
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1003f1c2
lea eax, [edi + edi*2]
cmp dword [esi + eax*8 + 0x14], 0xf
lea edx, [esi + eax*8]
jbe 0x1003f1c7
mov edx, dword [edx]
jmp 0x1003f1c7
mov edx, 0x1005f46c
push 0x24
mov ecx, str.Heads
call fcn.10029770
add esp, 4
mov byte [ebp - 0x21], al
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10042530
cmp byte [ebp - 0x21], 0
je 0x1003f20f
sub esp, 0xc
mov ecx, esp
push 0x1006eff0
call fcn.10042280
mov ecx, 0x1006ef00
call fcn.10050c10
add esp, 0xc
call fcn.10010f20
push ecx
mov edx, 0x1006efdc
mov ecx, str.SET_OUTFIT
call fcn.10051b40
add esp, 4
test al, al
je 0x1003f22b
call fcn.10046ab0
movss xmm1, dword [0x1006307c]
xorps xmm0, xmm0
call fcn.1000fe20
mov edi, dword [0x1006eefc]
lea ecx, [ebp - 0x40]
push 0x1006effc
call fcn.10042280
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
cmp esi, ecx
je 0x1003f287
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x1003f287
lea eax, [edi + edi*2]
cmp dword [esi + eax*8 + 0x14], 0xf
lea edx, [esi + eax*8]
jbe 0x1003f28c
mov edx, dword [edx]
jmp 0x1003f28c
mov edx, 0x1005f46c
push 0x24
mov ecx, str.Outfits
call fcn.10029770
add esp, 4
mov byte [ebp - 0x21], al
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10042530
cmp byte [ebp - 0x21], 0
je 0x1003f2d4
sub esp, 0xc
mov ecx, esp
push 0x1006effc
call fcn.10042280
mov ecx, 0x1006eefc
call fcn.10050c10
add esp, 0xc
call fcn.10010f20
push ecx
mov edx, 0x1006efdc
mov ecx, str.SET_SKELETON
call fcn.10051b40
add esp, 4
test al, al
je 0x1003f2ff
mov ecx, dword [0x1006ef64]
mov dl, byte [0x1006eef4]
mov ecx, dword [ecx + 0x10]
call fcn.10047e40
movss xmm1, dword [0x1006307c]
xorps xmm0, xmm0
call fcn.1000fe20
mov esi, dword [0x1006eef4]
lea ecx, [ebp - 0x58]
push 0x1006f044
call fcn.10042280
mov dword [ebp - 4], 3
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
cmp edi, ecx
je 0x1003f35b
sub ecx, edi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x1003f35b
lea eax, [esi + esi*2]
cmp dword [edi + eax*8 + 0x14], 0xf
lea edx, [edi + eax*8]
jbe 0x1003f360
mov edx, dword [edx]
jmp 0x1003f360
mov edx, 0x1005f46c
push 0x24
mov ecx, str.Skeletons
call fcn.10029770
add esp, 4
mov byte [ebp - 0x21], al
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.10042530
cmp byte [ebp - 0x21], 0
je 0x1003f3a8
sub esp, 0xc
mov ecx, esp
push 0x1006f044
call fcn.10042280
mov ecx, 0x1006eef4
call fcn.10050c10
add esp, 0xc
call fcn.10010f20
call fcn.1000e990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005465b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret