Function at 0x10087540
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.StartYear
mov edx, str.Misc
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100875bd
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100875b8
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x100875f1
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 0x100875ec
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 0x10087629
cmp eax, 1
je 0x10087629
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartYear
mov ecx, str.Misc
call fcn.10005480
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
js 0x10087658
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push 0x4be44c
call edi
lea eax, [ebp - 0x10]
mov dword [0x4be44c], esi
push eax
push dword [ebp - 0x10]
push 4
push 0x4be44c
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], 1
push eax
push str.StartMonth
mov edx, str.Misc
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100876ba
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100876b2
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or ebx, 0xffffffff
mov dword [ebp - 0x10], ebx
jmp 0x100876f1
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 ebx, eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
cmp edx, 0x10
jb 0x100876ec
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 0x1008772c
cmp eax, 1
je 0x1008772c
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartMonth
mov ecx, str.Misc
call fcn.10005480
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
js 0x10087762
mov eax, 0xb
cmp ebx, eax
cmovg ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x4be462
mov dword [ebp - 0x10], ebx
call edi
lea eax, [ebp - 0x14]
mov byte [0x4be462], bl
push eax
push dword [ebp - 0x14]
push 1
push 0x4be462
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.StartDay
mov edx, str.Misc
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x100877c1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100877bc
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or ebx, 0xffffffff
jmp 0x100877f5
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 ebx, eax
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100877f0
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 0x1008782d
cmp eax, 1
je 0x1008782d
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartDay
mov ecx, str.Misc
call fcn.10005480
mov ebx, eax
test ebx, ebx
js 0x10087872
cmp dword [ebp - 0x10], 1
jne 0x10087843
cmp ebx, 0x1c
jle 0x10087843
mov ebx, 0x1c
jmp 0x1008784d
mov eax, 0x1e
cmp ebx, eax
cmovg ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x4be436
call edi
lea eax, [ebp - 0x14]
mov byte [0x4be436], bl
push eax
push dword [ebp - 0x14]
push 1
push 0x4be436
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret