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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010f1a8
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 0x10099d0d
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099d08
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x10099d41
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 0x10099d3c
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 0x10099d79
cmp eax, 1
je 0x10099d79
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 0x10099e2b
xor ebx, ebx
test esi, esi
cmovns ebx, esi
cmp byte [0x10174f84], 0
je 0x10099dda
test byte [0x10174f88], 1
je 0x10099dda
mov edx, str.Applying_starting_x_position_patch.
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x10099dda
mov edx, str.Applying_starting_x_position_patch.
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
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 0x10099e8a
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10099e85
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x10099ebe
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 0x10099eb9
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 0x10099ef6
cmp eax, 1
je 0x10099ef6
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartYPos
mov ecx, str.Misc
call fcn.10005480
mov esi, eax
cmp esi, 0xffffffff
je 0x10099fa2
xor ebx, ebx
test esi, esi
cmovns ebx, esi
cmp byte [0x10174f84], 0
je 0x10099f51
test byte [0x10174f88], 1
je 0x10099f51
mov edx, str.Applying_starting_y_position_patch.
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x10099f51
mov edx, str.Applying_starting_y_position_patch.
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
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, 0x10099380
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 0x1009a032
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1009a02a
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 0x1009a06c
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 0x1009a067
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 0x1009a0a7
cmp eax, 1
je 0x1009a0a7
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 0x1009a138
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 0x1009a10d
test byte [0x10174f88], 1
je 0x1009a10d
mov edx, str.Applying_starting_x_view_patch.
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x1009a10d
mov edx, str.Applying_starting_x_view_patch.
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
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 0x1009a17a
cmp dword [0x10154e3c], 1
je 0x1009a17a
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.ViewYPos
mov ecx, str.Misc
call fcn.10005480
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1009a208
xor eax, eax
test ebx, ebx
cmovns eax, ebx
cmp byte [0x10174f84], 0
mov ebx, eax
mov dword [0x10160110], ebx
je 0x1009a1dd
test byte [0x10174f88], 1
je 0x1009a1dd
mov edx, str.Applying_starting_y_view_patch.
mov ecx, 0x10153db8
call fcn.10012ce0
push eax
call fcn.10012f80
add esp, 4
cmp dword [0x101553d8], 0
je 0x1009a1dd
mov edx, str.Applying_starting_y_view_patch.
mov ecx, 0x10141e60
call fcn.10012ce0
push eax
call fcn.10012f80
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 0x1009a213
cmp ebx, 0xffffffff
je 0x1009a241
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x4bcf08
call edi
mov eax, 0x10099230
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