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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010f1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push str.StartXPos
mov edx, str.Misc
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x10099d3d
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099d38
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x10099d71
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
or edx, 0xffffffff
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099d6c
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
je 0x10099da9
cmp eax, 1
je 0x10099da9
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartXPos
mov ecx, str.Misc
call fcn.10005480
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0xffffffff
je 0x10099e5b
xor ebx, ebx
test esi, esi
cmovns ebx, esi
cmp byte [0x10174f84], 0
je 0x10099e0a
test byte [0x10174f88], 1
je 0x10099e0a
mov edx, str.Applying_starting_x_position_patch.
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x10099e0a
mov edx, str.Applying_starting_x_position_patch.
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x4bc990
call edi
lea eax, [ebp - 0x10]
mov dword [0x4bc990], ebx
push eax
push dword [ebp - 0x10]
push 4
push 0x4bc990
call edi
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x4bcc08
call edi
lea eax, [ebp - 0x10]
mov dword [0x4bcc08], ebx
push eax
push dword [ebp - 0x10]
push 4
push 0x4bcc08
call edi
mov byte [0x101751fb], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 1
push eax
push str.StartYPos
mov edx, str.Misc
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x10099eba
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099eb5
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x10099eee
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
or edx, 0xffffffff
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov esi, eax
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099ee9
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
je 0x10099f26
cmp eax, 1
je 0x10099f26
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartYPos
mov ecx, str.Misc
call fcn.10005480
mov esi, eax
cmp esi, 0xffffffff
je 0x10099fd2
xor ebx, ebx
test esi, esi
cmovns ebx, esi
cmp byte [0x10174f84], 0
je 0x10099f81
test byte [0x10174f88], 1
je 0x10099f81
mov edx, str.Applying_starting_y_position_patch.
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x10099f81
mov edx, str.Applying_starting_y_position_patch.
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x4bc995
call edi
lea eax, [ebp - 0x10]
mov dword [0x4bc995], ebx
push eax
push dword [ebp - 0x10]
push 4
push 0x4bc995
call edi
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x4bcc0d
call edi
lea eax, [ebp - 0x10]
mov dword [0x4bcc0d], ebx
push eax
push dword [ebp - 0x10]
push 4
push 0x4bcc0d
call edi
mov byte [0x101751fb], 1
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x480dc1
call edi
mov eax, 0x100993b0
sub eax, 0x480dc5
mov dword [0x480dc1], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 4
push 0x480dc1
call edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
push str.ViewXPos
mov edx, str.Misc
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x1009a062
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1009a05a
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x1009a09c
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
or edx, 0xffffffff
call fcn.10005410
mov dword [ebp - 4], 0xffffffff
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
cmp edx, 0x10
jb 0x1009a097
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov ecx, dword [ebp - 0x10]
mov eax, dword [0x10154e3c]
cmp byte [0x10153f67], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
je 0x1009a0d7
cmp eax, 1
je 0x1009a0d7
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.ViewXPos
mov ecx, str.Misc
call fcn.10005480
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, 0xffffffff
je 0x1009a168
xor eax, eax
test ecx, ecx
cmovns eax, ecx
cmp byte [0x10174f84], 0
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [0x1015fe8c], ecx
je 0x1009a13d
test byte [0x10174f88], 1
je 0x1009a13d
mov edx, str.Applying_starting_x_view_patch.
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x1009a13d
mov edx, str.Applying_starting_x_view_patch.
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov esi, dword [0x1015fe8c]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x51de2c
call edi
lea eax, [ebp - 0x14]
mov dword [0x51de2c], esi
push eax
push dword [ebp - 0x14]
push 4
push 0x51de2c
call edi
push str.._sfall.ini
push 0xffffffffffffffff
mov edx, str.ViewYPos
mov ecx, str.Misc
call fcn.10005480
cmp byte [0x10153f67], 0
mov ebx, eax
je 0x1009a1aa
cmp dword [0x10154e3c], 1
je 0x1009a1aa
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.ViewYPos
mov ecx, str.Misc
call fcn.10005480
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1009a238
xor eax, eax
test ebx, ebx
cmovns eax, ebx
cmp byte [0x10174f84], 0
mov ebx, eax
mov dword [0x10160110], ebx
je 0x1009a20d
test byte [0x10174f88], 1
je 0x1009a20d
mov edx, str.Applying_starting_y_view_patch.
mov ecx, 0x10153db8
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
cmp dword [0x101553d8], 0
je 0x1009a20d
mov edx, str.Applying_starting_y_view_patch.
mov ecx, 0x10141e60
call fcn.10012cf0
push eax
call fcn.10012f90
add esp, 4
mov esi, dword [0x10160110]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x51de30
call edi
lea eax, [ebp - 0x14]
mov dword [0x51de30], esi
push eax
push dword [ebp - 0x14]
push 4
push 0x51de30
call edi
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1009a243
cmp ebx, 0xffffffff
je 0x1009a271
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x4bcf08
call edi
mov eax, 0x10099260
sub eax, 0x4bcf0c
mov dword [0x4bcf08], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push 0x4bcf08
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret