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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ef88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov bl, cl
mov dword [ebp - 0x14], 0xf
push edi
mov byte [0x10142c62], bl
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push str.NPCPushOnMoveBlock
mov edx, str.CombatAI
mov ecx, str.._sfall.ini
call fcn.100052a0
mov edi, 1
mov dword [0x10154e3c], eax
cmp eax, edi
je 0x100613b7
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100613b3
mov ecx, dword [ebp - 0x28]
inc edx
push edi
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
mov esi, edi
jmp 0x100613ea
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, edi
cmovae ecx, dword [ebp - 0x28]
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100613e5
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
je 0x10061422
cmp eax, 1
je 0x10061422
push str..ddraw.ini
push 1
mov edx, str.NPCPushOnMoveBlock
mov ecx, str.CombatAI
call fcn.10005480
mov esi, eax
test esi, esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
setne byte [0x1014311d]
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push str.LootingCorpses
mov edx, str.CombatAI
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x1006148c
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10061485
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
mov esi, 1
jmp 0x100614bf
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, edi
cmovae ecx, dword [ebp - 0x28]
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100614ba
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
je 0x100614f7
cmp eax, 1
je 0x100614f7
push str..ddraw.ini
push 1
mov edx, str.LootingCorpses
mov ecx, str.CombatAI
call fcn.10005480
mov esi, eax
mov dword [0x10175020], esi
test esi, esi
js 0x10061506
cmp esi, 2
jle 0x10061510
mov dword [0x10175020], 1
call fcn.10066350
mov cl, bl
call fcn.10063ac0
test bl, bl
je 0x10061669
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
push str.TakeBetterWeapons
mov edx, str.CombatAI
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x10061582
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1006157e
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
xor esi, esi
jmp 0x100615b5
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100615b0
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
je 0x100615ed
cmp eax, 1
je 0x100615ed
push str..ddraw.ini
push 0
mov edx, str.TakeBetterWeapons
mov ecx, str.CombatAI
call fcn.10005480
mov esi, eax
push str.._sfall.ini
test esi, esi
mov edx, str.EncounterAggression
push 0
mov ecx, str.CombatAI
setg byte [0x1017501e]
call fcn.10005480
cmp byte [0x10153f67], 0
je 0x10061634
cmp dword [0x10154e3c], 1
je 0x10061634
push str..ddraw.ini
push 0
mov edx, str.EncounterAggression
mov ecx, str.CombatAI
call fcn.10005480
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push 0x428af5
setg byte [0x10142c63]
call esi
lea eax, [ebp - 0x10]
mov byte [0x428af5], 0xc8
push eax
push dword [ebp - 0x10]
push 1
push 0x428af5
call esi
push str.._sfall.ini
push 0
mov edx, str.ReFindTargets
mov ecx, str.CombatAI
call fcn.10005480
cmp byte [0x10153f67], 0
je 0x100616a7
cmp dword [0x10154e3c], 1
je 0x100616a7
push str..ddraw.ini
push 0
mov edx, str.ReFindTargets
mov ecx, str.CombatAI
call fcn.10005480
test eax, eax
jle 0x100616b7
mov dword [0x10143118], 2
jmp 0x10061708
push str.._sfall.ini
push 1
mov edx, str.TryToFindTargets
mov ecx, str.CombatAI
call fcn.10005480
cmp byte [0x10153f67], 0
mov ecx, eax
je 0x100616f9
cmp dword [0x10154e3c], 1
je 0x100616f9
push str..ddraw.ini
push 1
mov edx, str.TryToFindTargets
mov ecx, str.CombatAI
call fcn.10005480
mov ecx, eax
mov eax, dword [0x10143118]
test ecx, ecx
cmovg eax, edi
mov dword [0x10143118], eax
push str.._sfall.ini
push 0
mov edx, str.NPCAttackWhoFix
mov ecx, str.CombatAI
call fcn.10005480
cmp byte [0x10153f67], 0
je 0x10061746
cmp dword [0x10154e3c], 1
je 0x10061746
push str..ddraw.ini
push 0
mov edx, str.NPCAttackWhoFix
mov ecx, str.CombatAI
call fcn.10005480
test eax, eax
mov edx, str.ItemPickUpFix
push str.._sfall.ini
push 1
mov ecx, str.CombatAI
setg byte [0x1014311c]
call fcn.10005480
cmp byte [0x10153f67], 0
mov ecx, eax
je 0x10061791
cmp dword [0x10154e3c], 1
je 0x10061791
push str..ddraw.ini
push 1
mov edx, str.ItemPickUpFix
mov ecx, str.CombatAI
call fcn.10005480
mov ecx, eax
movzx eax, byte [0x1017501f]
test ecx, ecx
cmovne eax, edi
mov byte [0x1017501f], al
test bl, bl
jne 0x100617e7
push str.._sfall.ini
push 1
mov edx, str.NPCSwitchingWeaponFix
mov ecx, str.CombatAI
call fcn.10005480
cmp byte [0x10153f67], bl
je 0x100617e3
cmp dword [0x10154e3c], 1
je 0x100617e3
push str..ddraw.ini
push 1
mov edx, str.NPCSwitchingWeaponFix
mov ecx, str.CombatAI
call fcn.10005480
test eax, eax
je 0x100617ee
mov byte [0x10142c61], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret