Function at 0x10011670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0
push 0
push esi
mov edi, eax
mov eax, dword [0x1045b8f0]
push edi
push str.Esr_ResCheck__d___x___in_
push 0x73
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 2
push eax
mov dword [ebp - 4], 0
call fcn.10062060
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [0x1045b8f0]
push edx
push eax
push edi
push str.Esr_ResCheck__d___x___d___d___in_
push 0x74
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 2
push ecx
call fcn.10062060
add esp, 0x50
test esi, esi
jne 0x10011704
mov edx, dword [0x1045b8f0]
push esi
push esi
push esi
push esi
push str.Esr_ResCheck_invalid_param__headInfo_is_null
push 0x76
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push esi
push edx
call fcn.10062060
add esp, 0x28
mov dword [ebp - 4], 0x277a
jmp 0x1001180e
push 0x108
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10011724
mov dword [ebp - 4], 0x2775
jmp 0x1001180e
push pe_nt_image_headers32
push 0
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp edi, 2
jne 0x10011884
mov eax, dword [ebp + 8]
push 0x1037300c
push eax
call fcn.1005f990
mov edi, eax
add esp, 8
mov dword [ebp - 8], edi
push 0
test edi, edi
jne 0x10011789
mov ecx, dword [ebp + 8]
mov edx, dword [0x1045b8f0]
push eax
push eax
push ecx
push str.Esr_ResCheck_open_file_failed__resPath_s
push 0x85
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push eax
push edx
mov dword [ebp - 4], 0x2776
call fcn.10062060
add esp, 0x28
jmp 0x100117fe
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10011793
push eax
jmp 0x10011795
push 0
push edi
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
push edi
push pe_nt_image_headers32
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
lea ecx, [ebp - 0x10]
add esp, 0x10
test ecx, ecx
je 0x100117c3
cmp eax, 0x100
je 0x10011843
mov edx, dword [0x1045b8f0]
push 0
push 0
push 0
push 0
push str.Esr_ResCheck_read_file_head_error_
push 0xa8
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 0
push edx
call fcn.10062060
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, ebx
test eax, eax
je 0x1001180e
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov esi, dword [ebp - 4]
mov ecx, dword [0x1045b8f0]
push 0
push 0
push 0
push esi
push str.Esr_ResCheck___d___out_
push 0xc0
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 2
push ecx
call fcn.10062060
add esp, 0x28
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov dword [esi], eax
mov cl, byte [ebx + 5]
mov eax, dword [ebp + 0x14]
mov byte [esi + 4], cl
lea edi, [esi + 5]
mov ecx, 8
lea esi, [ebx + 6]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x25]
mov ecx, 0x10
lea esi, [ebx + 0x26]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebx + 0x66]
mov edi, dword [ebp - 8]
mov dword [eax + 0x65], edx
mov ecx, dword [ebx + 0x6a]
mov dword [eax + 0x69], ecx
mov edx, dword [ebx + 0x6e]
mov dword [eax + 0x6d], edx
jmp 0x100117f4
mov eax, dword [0x1045b8f0]
push 0
push 0
push 0
push 0
push str.Esr_ResCheck_fileOpenType_error
push 0x9d
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 0
push eax
mov dword [ebp - 4], 0x277a
call fcn.10062060
add esp, 0x28
jmp 0x100117fe