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

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x1cc
push 0xffffffffffffffff
push 0x1006452d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1008a884]
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 0x10069790
push str..DataLocalEventEntryLevel.bmd
call fcn.1004dd0e
mov edi, eax
add esp, 8
test edi, edi
jne 0x10013abd
push 0x10
push 0x100697b8
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.1004e322
push edi
call fcn.1004e981
push edi
mov esi, eax
call fcn.1004eb47
push esi
call fcn.10046deb
push edi
push esi
push 1
push eax
mov dword [ebp - 0x14], eax
call fcn.1004defe
push edi
call fcn.1004dc27
add esp, 0x2c
xor ecx, ecx
test esi, esi
jle 0x10013b13
mov edx, dword [ebp - 0x14]
nop word [eax + eax]
mov eax, ecx
and eax, 0x1f
mov al, byte [eax + 0x1008a578]
xor byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x10013b00
lea ecx, [ebp]
call fcn.100416e0
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.10042290
cmp dword [ebp - 0x3c], 0
je 0x10013b77
lea ecx, [ebp - 0x3c]
call fcn.10042020
push eax
lea eax, [ebp + 0xc8]
push str.EventEntryLevel.bmd_file_load_error___s_
push eax
call fcn.10002470
add esp, 0xc
lea eax, [ebp + 0xc8]
push 0x10
push 0x10069810
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.10041c60
push str.IllusionTemple
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10041c60
push 0x10069838
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10041c60
lea ecx, [ebp - 0x10]
call fcn.10041800
test eax, eax
je 0x10013c32
push 0
push 0x10069840
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov edi, eax
cmp edi, 4
ja 0x10013c15
push 0
push 0x10069848
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
push 0
mov esi, eax
lea ecx, [ebp - 0x10]
push 0x1006984c
lea eax, [ebp - 0x2c]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
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.100425c0
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10041800
test eax, eax
jne 0x10013bb6
push str.Rest
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.10041c60
push str.Entry
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.10041c60
lea ecx, [ebp - 0x10]
call fcn.10041800
test eax, eax
je 0x10013cdc
push 0
push str.Level
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov edi, eax
cmp edi, 6
ja 0x10013cbf
push 0
push 0x10069868
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
push 0
mov esi, eax
lea ecx, [ebp - 0x10]
push 0x1006986c
lea eax, [ebp - 0x28]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
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.100425c0
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10041800
test eax, eax
jne 0x10013c60
push dword [ebp - 0x14]
call fcn.10046df4
add esp, 4
mov ecx, ebx
call fcn.10013e10
mov ecx, ebx
call fcn.10013d20
lea ecx, [ebp]
call fcn.100417c0
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.10046da7
lea esp, [ebp + 0x1cc]
pop ebp
ret