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

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x1cc
push 0xffffffffffffffff
push 0x10064a3d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1008b884]
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 0x1006a7b0
push str..DataLocalEventEntryLevel.bmd
call fcn.1004e21e
mov edi, eax
add esp, 8
test edi, edi
jne 0x10013d4d
push 0x10
push 0x1006a7d8
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.1004e832
push edi
call fcn.1004ee91
push edi
mov esi, eax
call fcn.1004f057
push esi
call fcn.100472fb
push edi
push esi
push 1
push eax
mov dword [ebp - 0x14], eax
call fcn.1004e40e
push edi
call fcn.1004e137
add esp, 0x2c
xor ecx, ecx
test esi, esi
jle 0x10013da3
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 0x10013d90
lea ecx, [ebp]
call fcn.10041bf0
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.100427a0
cmp dword [ebp - 0x3c], 0
je 0x10013e07
lea ecx, [ebp - 0x3c]
call fcn.10042530
push eax
lea eax, [ebp + 0xc8]
push str.EventEntryLevel.bmd_file_load_error___s_
push eax
call fcn.10002520
add esp, 0xc
lea eax, [ebp + 0xc8]
push 0x10
push 0x1006a830
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.10042170
push str.IllusionTemple
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10042170
push 0x1006a858
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10042170
lea ecx, [ebp - 0x10]
call fcn.10041d10
test eax, eax
je 0x10013ec2
push 0
push 0x1006a860
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov edi, eax
cmp edi, 4
ja 0x10013ea5
push 0
push 0x1006a868
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
push 0
mov esi, eax
lea ecx, [ebp - 0x10]
push 0x1006a86c
lea eax, [ebp - 0x2c]
push eax
call fcn.10042100
mov ecx, eax
call fcn.100420b0
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.10042ad0
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10041d10
test eax, eax
jne 0x10013e46
push str.Rest
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.10042170
push str.Entry
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.10042170
lea ecx, [ebp - 0x10]
call fcn.10041d10
test eax, eax
je 0x10013f6c
push 0
push str.Level
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
mov edi, eax
cmp edi, 6
ja 0x10013f4f
push 0
push 0x1006a888
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.10042100
mov ecx, eax
call fcn.100420b0
push 0
mov esi, eax
lea ecx, [ebp - 0x10]
push 0x1006a88c
lea eax, [ebp - 0x28]
push eax
call fcn.10042100
mov ecx, eax
call fcn.100420b0
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.10042ad0
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10041d10
test eax, eax
jne 0x10013ef0
push dword [ebp - 0x14]
call fcn.10047304
add esp, 4
mov ecx, ebx
call fcn.100140a0
mov ecx, ebx
call fcn.10013fb0
lea ecx, [ebp]
call fcn.10041cd0
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.100472b7
lea esp, [ebp + 0x1cc]
pop ebp
ret