Function at 0x100134a0
Capabilities:
Encode data using xor
Read file on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x1cc
push 0xffffffffffffffff
push 0x1006551d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1008b880]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x1006a7e0
push str..DataLocalEventEntryLevel.bmd
call fcn.1004ce8f
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001350d
push 0x10
push 0x1006a808
push str.EventEntryLevel.bmd_file_not_found
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 2
push 0
push edi
call fcn.1004d4a3
push edi
call fcn.1004db02
push edi
mov esi, eax
call fcn.1004dcc8
push esi
call fcn.10045ee9
push edi
push esi
push 1
push eax
mov dword [ebp - 0x14], eax
call fcn.1004d07f
push edi
call fcn.1004cda8
add esp, 0x2c
xor ecx, ecx
test esi, esi
jle 0x10013563
mov edx, dword [ebp - 0x14]
nop word [eax + eax]
mov eax, ecx
and eax, 0x1f
mov al, byte [eax + 0x1008b578]
xor byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10013550
lea ecx, [ebp]
call fcn.10040820
push 0
push 0x74
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp]
call fcn.100413d0
cmp dword [ebp - 0x3c], 0
je 0x100135c7
lea ecx, [ebp - 0x3c]
call fcn.10041160
push eax
lea eax, [ebp + 0xc8]
push str.EventEntryLevel.bmd_file_load_error___s_
push eax
call fcn.10002150
add esp, 0xc
lea eax, [ebp + 0xc8]
push 0x10
push 0x1006a860
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.EventEntryLevel
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp]
call fcn.10040da0
push str.IllusionTemple
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10040da0
push 0x1006a888
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10040da0
lea ecx, [ebp - 0x10]
call fcn.10040940
test eax, eax
je 0x10013682
push 0
push 0x1006a890
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov edi, eax
cmp edi, 4
ja 0x10013665
push 0
push 0x1006a898
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
push 0
mov esi, eax
lea ecx, [ebp - 0x10]
push 0x1006a89c
lea eax, [ebp - 0x2c]
push eax
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebx + edi*8 + 0x3c], esi
mov dword [ebx + edi*8 + 0x40], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.10041700
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10040940
test eax, eax
jne 0x10013606
push str.Rest
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.10040da0
push str.Entry
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.10040da0
lea ecx, [ebp - 0x10]
call fcn.10040940
test eax, eax
je 0x1001372c
push 0
push str.Level
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov edi, eax
cmp edi, 6
ja 0x1001370f
push 0
push 0x1006a8b8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
push 0
mov esi, eax
lea ecx, [ebp - 0x10]
push 0x1006a8bc
lea eax, [ebp - 0x28]
push eax
call fcn.10040d30
mov ecx, eax
call fcn.10040ce0
mov dword [ebx + edi*8 + 4], esi
mov dword [ebx + edi*8 + 8], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.10041700
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10040940
test eax, eax
jne 0x100136b0
push dword [ebp - 0x14]
call fcn.10045ef2
add esp, 4
mov ecx, ebx
call fcn.10013860
mov ecx, ebx
call fcn.10013770
lea ecx, [ebp]
call fcn.10040900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1c8]
xor ecx, ebp
call fcn.10045eb8
lea esp, [ebp + 0x1cc]
pop ebp
ret