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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1118f1d0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x112194bc]
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 ebx, ecx
mov dword [ebp - 0x2c4], ebx
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x11074826
push eax
call fcn.1113deca
add esp, 4
push 0x111997f0
lea ecx, [ebx + 4]
call fcn.11063920
lea eax, [ebp - 0x2cc]
mov dword [ebx + 0x20], 0
push eax
mov dword [ebx + 0x24], 0
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_const
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], dx
call fcn.1100f550
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x2b4]
mov dword [ebp - 4], 0
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_const
add esp, 4
cmp dword [eax + 4], 0
jne 0x110749b9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.11050370
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x110748df
push 0x12
push str.Error_opening_file
jmp 0x11074a90
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x110748fa
push 0xd
push str.File_is_empty
jmp 0x11074a90
cmp esi, 0x400000
jbe 0x1107490e
push 0xe
push str.File_too_large
jmp 0x11074a90
push esi
mov dword [ebp - 0x2b8], 0
call fcn.110d0a6c
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2b8], esi
je 0x11074994
push ebx
call fcn.110d0a75
mov ecx, dword [ebp - 0x2c4]
add esp, 4
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::CMarkup::Release_void_
mov ecx, dword [ebp - 0x2c4]
sub esp, 8
mov eax, esp
sub esp, 8
mov dword [eax], 0x111997f0
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], str.Could_not_read_file
mov dword [eax + 4], 0x13
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t____class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t___
mov bl, al
jmp 0x11074d44
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2c4]
push esi
push ebx
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push dword [ebp - 0x2c0]
mov bl, al
call fcn.110d0a75
add esp, 4
jmp 0x11074d44
lea eax, [ebp - 0x2b4]
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_const
add esp, 4
lea ecx, [ebp - 0x48]
push dword [eax + 4]
push dword [eax]
call fcn.11050370
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x110749f0
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov esi, eax
mov dword [ebp - 0x2b8], esi
jmp 0x11074a85
lea eax, [ebp - 0x2bc]
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZipPwd_void_const
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], dx
call fcn.1100f550
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
push dword [ebp - 0x54]
cmovae eax, dword [ebp - 0x64]
push eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
call fcn.11073dc0
cmp dword [ebp - 0x68], 0x10
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
cmovae ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x34], 8
push ecx
cmovae eax, dword [ebp - 0x48]
push eax
call fcn.1104b660
add esp, 0x14
lea ecx, [ebp - 0x7c]
mov esi, eax
mov dword [ebp - 0x2b8], esi
call fcn.11063470
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.1100e280
test esi, esi
jne 0x11074aae
push 0x16
push str.Error_opening_zip_file
lea ecx, [ebx + 0x2c]
call fcn.11018650
push 0
push 0x111997f0
lea ecx, [ebx + 0x48]
call fcn.11018650
xor bl, bl
jmp 0x11074d44
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x2c0], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.1100f550
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2b4], 0x111a6d04
mov dword [ebp - 0x2b0], 1
call fcn.11073ee0
mov esi, eax
cmp esi, dword [section..data]
je 0x11074bf9
nop dword [eax + eax]
push 1
push 0x111a8a18
push 1
push esi
lea ecx, [ebp - 0x2c]
call fcn.1105fc50
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
add esi, 2
cmp dword [ebp - 0x18], 8
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2b0], edx
cmp ecx, 1
jb 0x11074be4
lea eax, [ecx - 1]
cmp esi, eax
ja 0x11074be4
lea eax, [edx + ecx*2]
mov dword [ebp - 0x2c8], eax
lea esi, [edx + esi*2]
nop dword [eax]
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x11074b94
cmp word [esi], 0x5c
je 0x11074b92
cmp ecx, 1
je 0x11074b94
add esi, 2
dec ecx
cmp word [esi], 0x5c
jne 0x11074b83
mov edx, esi
mov esi, edx
test esi, esi
je 0x11074be4
movzx ecx, word [esi]
mov edi, 0x5c
mov edx, 1
mov eax, 0x111a6d04
cmp ecx, edi
jb 0x11074bcf
mov ebx, esi
sub ebx, eax
cmp cx, di
ja 0x11074bcf
cmp edx, 1
je 0x11074bda
movzx ecx, word [ebx + eax + 2]
add eax, 2
dec edx
movzx edi, word [eax]
cmp cx, di
jae 0x11074bb7
mov eax, dword [ebp - 0x2c8]
add esi, 2
jmp 0x11074b70
sub esi, dword [ebp - 0x2b0]
sar esi, 1
jmp 0x11074be7
or esi, 0xffffffff
cmp esi, dword [section..data]
jne 0x11074b20
mov ebx, dword [ebp - 0x2c4]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x2c0]
push ecx
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
push dword [ebp - 0x2b8]
call fcn.1104ab00
add esp, 0x14
test eax, eax
je 0x11074c30
push 0x19
push str.Could_not_find_ziped_file
jmp 0x11074c3e
mov esi, dword [ebp - 0x80]
test esi, esi
jne 0x11074c5c
push 0xd
push str.File_is_empty
lea ecx, [ebx + 0x2c]
call fcn.11018650
push 0
push 0x111997f0
lea ecx, [ebx + 0x48]
call fcn.11018650
xor bl, bl
jmp 0x11074d3c
cmp esi, 0x400000
jbe 0x11074c96
sub esp, 8
mov ecx, ebx
mov eax, esp
sub esp, 8
mov dword [eax], 0x111997f0
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], str.File_too_large
mov dword [eax + 4], 0xe
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t____class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t___
mov bl, al
jmp 0x11074d3c
push esi
call fcn.110d0a6c
push esi
mov edi, eax
push edi
push dword [ebp - 0x2c0]
push dword [ebp - 0x2b8]
call fcn.1104bdb0
add esp, 0x14
test eax, eax
je 0x11074d0e
cmp eax, 0x600
je 0x11074d0e
push edi
call fcn.110d0a75
add esp, 4
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11074cdf
push dword [ebp - 0x2b8]
call fcn.1104a660
add esp, 4
sub esp, 8
mov ecx, ebx
mov eax, esp
sub esp, 8
mov dword [eax], 0x111997f0
mov dword [eax + 4], 0
mov eax, esp
mov dword [eax], str.Could_not_unzip_file
mov dword [eax + 4], 0x14
call sym.DuiLib.dll_private:_bool___thiscall_DuiLib::CMarkup::_Failed_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t____class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t___
mov bl, al
jmp 0x11074d3c
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11074d25
push dword [ebp - 0x2b8]
call fcn.1104a660
add esp, 4
push dword [ebp + 0x10]
mov ecx, ebx
push esi
push edi
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CMarkup::LoadFromMem_unsigned_char___unsigned_long_int__int_
push edi
mov bl, al
call fcn.110d0a75
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.1100e280
lea ecx, [ebp - 0x48]
call fcn.1100e280
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.110d0a88
mov esp, ebp
pop ebp
ret 0xc