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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6771
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x1013a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a0], 0
call sym.DTLUI.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
call sym.DTLUI.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.DTLUI.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
movzx eax, al
test eax, eax
jne 0x10091a63
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x1a8], 0
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x10091928
call sym.DTLUI.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx edx, al
test edx, edx
je 0x10091867
call sym.DTLUI.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetXmlResourceZipHandle_void_
mov dword [ebp - 0x1a8], eax
jmp 0x100918ba
call sym.DTLUI.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x118]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov byte [ebp - 4], 1
call sym.DTLUI.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetXmlZip_void_
push eax
lea ecx, [ebp - 0x118]
call sym.DTLUI.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
push 2
push 0
lea ecx, [ebp - 0x118]
call sym.DTLUI.dll_public:_struct_HBITMAP______thiscall_DuiLib::CBitmapT_1_::operator_struct_HBITMAP____void_const
push eax
call fcn.100c8f70
add esp, 0xc
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x1a8], 0
je 0x10091928
mov eax, dword [ebp - 0x1a8]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sym.DTLUI.dll_public:_static_int___cdecl_DuiLib::CPaintManagerUI::LoadFileDataFromZip_wchar_t_const___unsigned_char____void___void___void__
add esp, 0x14
mov dword [ebp - 0x1a0], eax
call sym.DTLUI.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
jne 0x100918ff
mov ecx, dword [ebp - 0x1a8]
push ecx
call fcn.100c9200
add esp, 4
mov edx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1b8], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [ebp - 0x1b8]
jmp 0x10091b90
call sym.DTLUI.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
je 0x1009194f
call sym.DTLUI.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetBaseResourceZipHandle_void_
mov dword [ebp - 0x1a4], eax
call sym.DTLUI.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetSkinExResourceZipHandle_void_
mov dword [ebp - 0x1ac], eax
jmp 0x100919da
call sym.DTLUI.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DTLUI.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
push 2
push 0
lea ecx, [ebp - 0x94]
call sym.DTLUI.dll_public:_struct_HBITMAP______thiscall_DuiLib::CBitmapT_1_::operator_struct_HBITMAP____void_const
push eax
call fcn.100c8f70
add esp, 0xc
mov dword [ebp - 0x1a4], eax
cmp dword [ebp - 0x1a4], 0
je 0x100919da
call sym.DTLUI.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x19c]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov byte [ebp - 4], 2
call sym.DTLUI.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZipEx_void_
push eax
lea ecx, [ebp - 0x19c]
call sym.DTLUI.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
push 2
push 0
lea ecx, [ebp - 0x19c]
call sym.DTLUI.dll_public:_struct_HBITMAP______thiscall_DuiLib::CBitmapT_1_::operator_struct_HBITMAP____void_const
push eax
call fcn.100c8f70
add esp, 0xc
mov dword [ebp - 0x1ac], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x19c]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp dword [ebp - 0x1a4], 0
jne 0x10091a0a
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [ebp - 0x1bc]
jmp 0x10091b90
push 0
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp - 0x1a4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sym.DTLUI.dll_public:_static_int___cdecl_DuiLib::CPaintManagerUI::LoadFileDataFromZip_wchar_t_const___unsigned_char____void___void___void__
add esp, 0x14
mov dword [ebp - 0x1a0], eax
call sym.DTLUI.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx edx, al
test edx, edx
jne 0x10091a63
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.100c9200
add esp, 4
cmp dword [ebp - 0x1ac], 0
je 0x10091a63
mov ecx, dword [ebp - 0x1ac]
push ecx
call fcn.100c9200
add esp, 4
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x10091b6c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call sym.DTLUI.dll_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.DTLUI.dll_public:_struct_HBITMAP______thiscall_DuiLib::CBitmapT_1_::operator_struct_HBITMAP____void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1b0], 0xffffffff
je 0x10091b6c
push 0
mov ecx, dword [ebp - 0x1b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x10091b5f
mov dword [ebp - 0x1b4], 0
mov edx, dword [ebp - 0x1a0]
push edx
call fcn.100c985a
add esp, 4
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c0]
mov dword [eax], ecx
push 0
lea edx, [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x1b4]
cmp ecx, dword [ebp - 0x1a0]
je 0x10091b5f
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x1c4], eax
mov ecx, dword [ebp - 0x1c4]
push ecx
call fcn.100c9636
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1a0]
mov dword [ebp - 0x1c8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov eax, dword [ebp - 0x1c8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c928c
mov esp, ebp
pop ebp
ret