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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ef98
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 0x100613f7
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100613f3
mov ecx, dword [ebp - 0x28]
inc edx
push edi
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
mov esi, edi
jmp 0x1006142a
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 0x10061425
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 0x10061462
cmp eax, 1
je 0x10061462
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 0x100614cc
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100614c5
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
mov esi, 1
jmp 0x100614ff
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 0x100614fa
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 0x10061537
cmp eax, 1
je 0x10061537
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 0x10061546
cmp esi, 2
jle 0x10061550
mov dword [0x10175020], 1
call fcn.10066390
mov cl, bl
call fcn.10063b00
test bl, bl
je 0x100616a9
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 0x100615c2
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100615be
mov ecx, dword [ebp - 0x28]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
xor esi, esi
jmp 0x100615f5
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 0x100615f0
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 0x1006162d
cmp eax, 1
je 0x1006162d
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 0x10061674
cmp dword [0x10154e3c], 1
je 0x10061674
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 0x100616e7
cmp dword [0x10154e3c], 1
je 0x100616e7
push str..ddraw.ini
push 0
mov edx, str.ReFindTargets
mov ecx, str.CombatAI
call fcn.10005480
test eax, eax
jle 0x100616f7
mov dword [0x10143118], 2
jmp 0x10061748
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 0x10061739
cmp dword [0x10154e3c], 1
je 0x10061739
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 0x10061786
cmp dword [0x10154e3c], 1
je 0x10061786
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 0x100617d1
cmp dword [0x10154e3c], 1
je 0x100617d1
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 0x10061827
push str.._sfall.ini
push 1
mov edx, str.NPCSwitchingWeaponFix
mov ecx, str.CombatAI
call fcn.10005480
cmp byte [0x10153f67], bl
je 0x10061823
cmp dword [0x10154e3c], 1
je 0x10061823
push str..ddraw.ini
push 1
mov edx, str.NPCSwitchingWeaponFix
mov ecx, str.CombatAI
call fcn.10005480
test eax, eax
je 0x1006182e
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