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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3270
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c8], ecx
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
movzx eax, al
test eax, eax
je 0x4785ad
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2e4], eax
cmp dword [ebp - 0x2e4], 0xffffffff
jne 0x4783e8
push 0
push str.Error_opening_file
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2c9], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2c9]
jmp 0x478805
push 0
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 0x2dc], 0
jne 0x47843b
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2ca], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2ca]
jmp 0x478805
cmp dword [ebp - 0x2dc], 0x400000
jbe 0x47847c
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2cb], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2cb]
jmp 0x478805
mov dword [ebp - 0x2f4], 0
mov eax, dword [ebp - 0x2dc]
push eax
call fcn.004978aa
add esp, 4
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2e8], ecx
push 0
lea edx, [ebp - 0x2f4]
push edx
mov eax, dword [ebp - 0x2dc]
push eax
mov ecx, dword [ebp - 0x2e8]
push ecx
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2e4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2f4]
cmp ecx, dword [ebp - 0x2dc]
je 0x478541
mov edx, dword [ebp - 0x2e8]
mov dword [ebp - 0x300], edx
mov eax, dword [ebp - 0x300]
push eax
call fcn.0049766a
add esp, 4
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CMarkup::Release_void_
push 0
push str.Could_not_read_file
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2cc], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2cc]
jmp 0x478805
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x2dc]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
mov byte [ebp - 0x2cd], al
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
push edx
call fcn.0049766a
add esp, 4
mov al, byte [ebp - 0x2cd]
mov byte [ebp - 0x2ce], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2ce]
jmp 0x478805
mov ecx, dword [ebp + 0xc]
call sym.Setup.exe_public:_void____thiscall_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0x2f0], eax
cmp dword [ebp - 0x2f0], 0
jne 0x4785f9
push 0
push str.Error_opening_zip_file
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2cf], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2cf]
jmp 0x478805
lea ecx, [ebp - 0x2c4]
push ecx
lea edx, [ebp - 0x30c]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2f0]
push ecx
call fcn.004567e0
add esp, 0x14
test eax, eax
je 0x478655
push 0
push str.Could_not_find_ziped_file
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2d0], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d0]
jmp 0x478805
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x2e0], edx
cmp dword [ebp - 0x2e0], 0
jne 0x47869f
push 0
push str.File_is_empty
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2d1], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d1]
jmp 0x478805
cmp dword [ebp - 0x2e0], 0x400000
jbe 0x4786e0
push 0
push str.File_too_large
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2d2], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d2]
jmp 0x478805
mov eax, dword [ebp - 0x2e0]
push eax
call fcn.004978aa
add esp, 4
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x308]
mov dword [ebp - 0x2ec], ecx
push 3
mov edx, dword [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x2ec]
push eax
mov ecx, dword [ebp - 0x30c]
push ecx
mov edx, dword [ebp - 0x2f0]
push edx
call fcn.00457970
add esp, 0x14
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
je 0x47878f
cmp dword [ebp - 0x2f8], 0x600
je 0x47878f
mov eax, dword [ebp - 0x2ec]
mov dword [ebp - 0x310], eax
mov ecx, dword [ebp - 0x310]
push ecx
call fcn.0049766a
add esp, 4
push 0
push str.Could_not_unzip_file
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_private:_bool___thiscall_DuiLib::CMarkup::_Failed_wchar_t_const___wchar_t_const__
mov byte [ebp - 0x2d3], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d3]
jmp 0x478805
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
mov ecx, dword [ebp - 0x2ec]
push ecx
mov ecx, dword [ebp - 0x2c8]
call sym.Setup.exe_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
mov byte [ebp - 0x2d4], al
mov edx, dword [ebp - 0x2ec]
mov dword [ebp - 0x314], edx
mov eax, dword [ebp - 0x314]
push eax
call fcn.0049766a
add esp, 4
mov cl, byte [ebp - 0x2d4]
mov byte [ebp - 0x2d5], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, byte [ebp - 0x2d5]
jmp 0x478805
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 0xc