Function at 0x10027d80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.Ivw_ResCheck____in_
push 0x76
push str......._source_appmsc_lualuacivwivw.c
push 1
mov esi, eax
mov eax, dword [0x1045b8f0]
push 2
push eax
mov word [ebp - 4], bx
call fcn.10062060
add esp, 0x28
test esi, esi
je 0x1002804b
mov eax, dword [ebp + 8]
test eax, eax
je 0x1002804b
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1002804b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
mov eax, dword [0x1045b8f0]
push esi
push str.Ivw_ResCheck__s___s___d___d_
push 0x7d
push str......._source_appmsc_lualuacivwivw.c
push 1
push 2
push eax
call fcn.10062060
push 0x1037466c
push esi
call fcn.10061320
add esp, 0x30
test eax, eax
jne 0x10027e4d
mov ecx, dword [ebp + 8]
push 0x1037300c
push ecx
call fcn.1005f990
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10027e4d
mov edx, dword [ebp + 8]
push eax
push eax
push eax
push edx
push str.Ivw_ResCheck_open_file_failed__res_path_s
push 0x86
push str......._source_appmsc_lualuacivwivw.c
push 1
push eax
mov eax, dword [0x1045b8f0]
push eax
mov edi, 0x2776
call fcn.10062060
add esp, 0x28
jmp 0x10027ecc
mov eax, dword [ebp + 0xc]
push 0
test eax, eax
jle 0x10027e59
push eax
jmp 0x10027e5b
push 0
push ebx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test ebx, ebx
je 0x10027e93
lea ecx, [ebp - 4]
test ecx, ecx
je 0x10027e93
mov esi, dword [sym.imp.MSVCR100.dll_fread]
push ebx
push 2
mov edx, ecx
push 1
push edx
call esi
add esp, 0x10
cmp eax, 2
je 0x10027f22
mov edi, 0xfffffffe
jmp 0x10027e96
or edi, 0xffffffff
push 0
push 0
push 0
push edi
push str.Ivw_ResCheck_read_file_head_resver_error__ret_d
push 0xac
mov eax, dword [0x1045b8f0]
push str......._source_appmsc_lualuacivwivw.c
push 1
push 0
push eax
call fcn.10062060
add esp, 0x28
test ebx, ebx
je 0x10027ecc
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 0x88]
xor ebx, ebx
cmp eax, ebx
je 0x10027ef1
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov dword [esi + 0x88], ebx
mov dword [esi + 0x84], ebx
add esp, 4
mov eax, dword [0x1045b8f0]
push 0
push 0
push 0
push edi
push str.Ivw_ResCheck__d___out_
push 0xea
push str......._source_appmsc_lualuacivwivw.c
push 1
push 2
push eax
call fcn.10062060
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 3]
mov byte [edi], al
cmp al, 3
jne 0x10028033
xor eax, eax
lea ecx, [ebp - 8]
mov byte [ebp - 8], 0
mov word [ebp - 7], ax
mov byte [ebp - 5], al
test ecx, ecx
je 0x10027f5c
push ebx
push 4
mov edx, ecx
push 1
push edx
call esi
add esp, 0x10
cmp eax, 4
je 0x10027f75
mov edi, 0xfffffffe
jmp 0x10027f5f
or edi, 0xffffffff
push 0
push 0
push 0
push edi
push str.Ivw_ResCheck_read_jinfo_size_error__ret_d
push 0xbc
jmp 0x10027ea7
movzx esi, byte [ebp - 5]
movzx ecx, byte [ebp - 6]
movzx edx, byte [ebp - 7]
movzx eax, byte [ebp - 8]
shl esi, 8
or esi, ecx
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [esi + 6]
push 0xc3
push str......._source_appmsc_lualuacivwivw.c
mov dword [edi + 0x84], eax
mov dword [0x1044a55c], ecx
mov dword [edi + 0x80], ecx
call fcn.100642c0
add esp, 0xc
mov dword [edi + 0x88], eax
test eax, eax
jne 0x10027fd3
mov edi, 0x2775
jmp 0x10027ebe
test esi, esi
je 0x1002800a
push ebx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, esi
je 0x10027ff0
mov edi, 0xfffffffe
jmp 0x1002800d
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x88]
push ebx
xor edi, edi
mov byte [esi + eax], 0
call fcn.1005f9f0
jmp 0x10027eee
or edi, 0xffffffff
push 0
push 0
push 0
push edi
push str.Ivw_ResCheck_read_jinfo_error__ret_d
push 0xcd
mov ecx, dword [0x1045b8f0]
push str......._source_appmsc_lualuacivwivw.c
push 1
push 0
push ecx
jmp 0x10027eb6
push 0
push 0
push 0
mov edi, 0x61ac
push edi
push str.Ivw_ResCheck_resource_head_version_error__ret_d
push 0xd4
jmp 0x1002801e
mov edx, dword [0x1045b8f0]
push 0
push 0
push 0
push 0
push str.Ivw_ResCheck_invalid_param
push 0x7a
push str......._source_appmsc_lualuacivwivw.c
push 1
push 0
push edx
mov edi, 0x277a
call fcn.10062060
add esp, 0x28
jmp 0x10027ecc