Function at 0x10057030
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102923fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x1035dd3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10057072
push eax
call fcn.10265f8b
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x10057082
push eax
call fcn.10265f8b
add esp, 4
push sym.nsInstall.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath
lea ecx, [ebp - 0x98]
mov dword [esi], 0
mov dword [esi + 4], 0
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
mov eax, dword [sym.nsInstall.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
cmp word [eax], 0
jne 0x1005718a
test ebx, ebx
je 0x100570c5
push ebx
lea ecx, [ebp - 0x98]
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100570f6
push 0x63
push str.Error_opening_file
jmp 0x10057265
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x10057111
push 0x63
push str.File_is_empty
jmp 0x10057265
cmp edi, 0x400000
jbe 0x10057125
push 0x63
push str.File_too_large
jmp 0x10057265
push edi
mov dword [ebp - 0x2d0], 0
call fcn.10260577
add esp, 4
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x2d0]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], edi
je 0x10057181
mov edi, dword [ebp - 0x2cc]
push edi
call fcn.10260580
add esp, 4
mov ecx, esi
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CDialogBuilder::destructor_void_
push 0x63
push str.Could_not_read_file
jmp 0x10057265
push dword [ebp + 0xc]
push edi
jmp 0x1005729f
push eax
lea ecx, [ebp - 0x98]
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
cmp byte [sym.nsInstall.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x100571a7
mov edi, dword [sym.nsInstall.dll_void__DuiLib::CPaintManagerUI::m_hResourceZip]
jmp 0x100571bb
mov ecx, dword [ebp - 0x98]
xor edx, edx
push 2
call fcn.10066c50
add esp, 4
mov edi, eax
test edi, edi
jne 0x100571cb
push 0x63
push str.Error_opening_zip_file
jmp 0x10057265
lea eax, [ebp - 0x2c8]
mov edx, ebx
push eax
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov ecx, edi
call fcn.10066cd0
add esp, 0xc
test eax, eax
je 0x100571f3
push 0x63
push str.Could_not_find_ziped_file
jmp 0x10057265
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
jne 0x10057206
push 0x63
push str.File_is_empty
jmp 0x10057265
cmp ebx, 0x400000
jbe 0x10057217
push 0x63
push str.File_too_large
jmp 0x10057265
push ebx
call fcn.10260577
mov edx, dword [ebp - 0x2d0]
mov ecx, edi
push ebx
push eax
mov dword [ebp - 0x2cc], eax
call fcn.10066e80
add esp, 0xc
test eax, eax
je 0x1005728b
cmp eax, 0x600
je 0x1005728b
push dword [ebp - 0x2cc]
call fcn.10260580
add esp, 4
cmp byte [sym.nsInstall.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x1005725e
mov ecx, edi
call fcn.10066fd0
push 0x63
push str.Could_not_unzip_file
lea eax, [esi + 0x10]
push eax
call fcn.1027588f
add esp, 0xc
lea eax, [esi + 0xd8]
push 0x31
push 0x103222f0
push eax
call fcn.1027588f
add esp, 0xc
xor bl, bl
jmp 0x100572b8
cmp byte [sym.nsInstall.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x1005729b
mov ecx, edi
call fcn.10066fd0
push dword [ebp + 0xc]
push ebx
mov edi, dword [ebp - 0x2cc]
mov ecx, esi
push edi
call sym.nsInstall.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.10260580
add esp, 4
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x100572d1
push eax
call fcn.10265f8b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102601ec
mov esp, ebp
pop ebp
ret 8