Function at 0x10087520
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.StartYear
mov edx, str.Misc
mov ecx, str.._sfall.ini
call fcn.100052a0
mov dword [0x10154e3c], eax
cmp eax, 1
je 0x1008759d
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10087598
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or esi, 0xffffffff
jmp 0x100875d1
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 0x100875cc
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 0x10087609
cmp eax, 1
je 0x10087609
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 0x10087638
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 0x1008769a
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10087692
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 0x100876d1
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 0x100876cc
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 0x1008770c
cmp eax, 1
je 0x1008770c
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 0x10087742
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 0x100877a1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1008779c
mov ecx, dword [ebp - 0x2c]
inc edx
push 1
call fcn.1000d8e0
mov eax, dword [0x10154e3c]
or ebx, 0xffffffff
jmp 0x100877d5
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 0x100877d0
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 0x1008780d
cmp eax, 1
je 0x1008780d
push str..ddraw.ini
push 0xffffffffffffffff
mov edx, str.StartDay
mov ecx, str.Misc
call fcn.10005480
mov ebx, eax
test ebx, ebx
js 0x10087852
cmp dword [ebp - 0x10], 1
jne 0x10087823
cmp ebx, 0x1c
jle 0x10087823
mov ebx, 0x1c
jmp 0x1008782d
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