Function at 0x10013eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10415990]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov eax, dword [ebp + 8]
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.GetResPathInfo__in_
push 0x654
push str......._source_appmsc_lualuac_aitalk_aitalk.c
mov edi, edx
mov edx, dword [0x1045b8f0]
push 1
push 2
push edx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
call fcn.10062060
add esp, 0x28
cmp edi, ebx
je 0x10013f4e
xor eax, eax
cmp eax, 0x1037300c
je 0x10013f4e
push ebx
push edi
lea edi, [ebp - 0x20c]
call fcn.1005fc80
mov ecx, edi
push 0x1037300c
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x218], esi
cmp esi, ebx
jne 0x10013f58
mov esi, 0x59e3
jmp 0x10014198
mov eax, dword [ebp - 0x224]
push ebx
cmp eax, ebx
jle 0x10013f66
push eax
jmp 0x10013f67
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push 0x10
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x230], edi
cmp edi, ebx
jne 0x10013f92
mov esi, 0x59db
jmp 0x10014168
lea edx, [ebp - 0x210]
push edx
push 8
push edi
push esi
mov dword [ebp - 0x220], edi
call fcn.1005fa70
add esp, 0x10
cmp dword [ebp - 0x210], 8
je 0x10013fe7
mov eax, dword [0x1045b8f0]
push 0
push 0
push 0
push 0
push str.invalid_resource:_incomplete_header1__read_len_error_
push 0x683
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 0
push eax
mov esi, 0x5a43
call fcn.10062060
add esp, 0x28
jmp 0x10014168
movzx esi, byte [edi + 3]
movzx ecx, byte [edi + 2]
movzx edx, byte [edi + 1]
movzx eax, byte [edi]
shl esi, 8
or esi, ecx
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
jne 0x10014037
push esi
push esi
push esi
push esi
push str.invalid_resource:_invalid_header1__header2_len_is_0_
push 0x68a
mov ecx, dword [0x1045b8f0]
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 0
push ecx
mov esi, 0x5a43
call fcn.10062060
add esp, 0x28
jmp 0x10014168
lea ecx, [edi + 4]
call fcn.10015380
mov dword [ebp - 0x234], eax
cmp esi, 0xfffffffc
jae 0x10014055
lea eax, [esi + 3]
and eax, 0xfffffffc
add eax, 8
jmp 0x10014057
mov eax, esi
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10014071
mov esi, 0x59db
jmp 0x10014168
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x210]
push edx
push esi
push ebx
push eax
mov dword [ebp - 0x210], 0
call fcn.1005fa70
add esp, 0x10
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x210], esi
je 0x100140b8
push 0
push 0
push 0
push 0
push str.invalid_resource:_incomplete_header2__read_len_error_
push 0x69a
jmp 0x10014015
mov eax, esi
mov ecx, esi
lea esp, [esp]
movzx edx, byte [ecx + ebx - 1]
dec ecx
mov edi, eax
shl edi, 5
add edx, edi
mov edi, eax
shr edi, 2
add edx, edi
xor eax, edx
test ecx, ecx
jne 0x100140c0
cmp dword [ebp - 0x234], eax
je 0x1001410d
mov eax, dword [0x1045b8f0]
push ecx
push ecx
push ecx
push ecx
push str.invalid_resource:_corrupted_header2_
push 0x6a0
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push ecx
push eax
mov esi, 0x5a43
call fcn.10062060
add esp, 0x28
jmp 0x10014168
mov edx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x214]
push ecx
push edx
push eax
push esi
push ebx
call fcn.10013af0
add esp, 0x14
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x10014162
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.1005f9f0
mov edx, dword [ebp - 0x230]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edx
call esi
add esp, 4
push ebx
call esi
mov esi, dword [ebp - 0x214]
jmp 0x10014195
mov esi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp - 0x220]
mov edi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test eax, eax
je 0x1001418e
push eax
call edi
add esp, 4
test ebx, ebx
je 0x10014198
push ebx
call edi
add esp, 4
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x100141a4
mov dword [eax], esi
mov ecx, dword [0x1045b8f0]
push 0
push 0
push 0
push esi
push str.GetResPathInfo_ret_d___out_
push 0x6c0
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 2
push ecx
call fcn.10062060
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x21c]
add esp, 0x28
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1015eea7
mov esp, ebp
pop ebp
ret