Function at 0x10099cb0
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 0x10099d2d
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099d28
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x10099d61
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 0x10099d5c
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 0x10099d99
cmp eax, 1
je 0x10099d99
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 0x10099e4b
xor ebx, ebx
test esi, esi
cmovns ebx, esi
cmp byte [0x10174f84], 0
je 0x10099dfa
test byte [0x10174f88], 1
je 0x10099dfa
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 0x10099dfa
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 0x10099eaa
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099ea5
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x10099ede
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 0x10099ed9
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 0x10099f16
cmp eax, 1
je 0x10099f16
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartYPos
mov ecx, str.Misc
call fcn.10005480
mov esi, eax
cmp esi, 0xffffffff
je 0x10099fc2
xor ebx, ebx
test esi, esi
cmovns ebx, esi
cmp byte [0x10174f84], 0
je 0x10099f71
test byte [0x10174f88], 1
je 0x10099f71
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 0x10099f71
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, 0x100993a0
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 0x1009a052
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1009a04a
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 0x1009a08c
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 0x1009a087
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 0x1009a0c7
cmp eax, 1
je 0x1009a0c7
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 0x1009a158
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 0x1009a12d
test byte [0x10174f88], 1
je 0x1009a12d
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 0x1009a12d
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 0x1009a19a
cmp dword [0x10154e3c], 1
je 0x1009a19a
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.ViewYPos
mov ecx, str.Misc
call fcn.10005480
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1009a228
xor eax, eax
test ebx, ebx
cmovns eax, ebx
cmp byte [0x10174f84], 0
mov ebx, eax
mov dword [0x10160110], ebx
je 0x1009a1fd
test byte [0x10174f88], 1
je 0x1009a1fd
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 0x1009a1fd
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 0x1009a233
cmp ebx, 0xffffffff
je 0x1009a261
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x4bcf08
call edi
mov eax, 0x10099250
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