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

Disassembly:
push 0x2c8
mov eax, 0x100b6656
call fcn.1006d999
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2cc], eax
call sym.DuiLib32.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.DuiLib32.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.DuiLib32.dll_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x1002da75
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x1002da21
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x1002db67
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x1002da0d
push ebx
mov dword [ebp - 0x2d0], edi
call fcn.1006d901
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x2d0]
push eax
push ebx
push esi
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], ebx
je 0x1002db54
push esi
call fcn.1006d90a
pop ecx
jmp 0x1002da0d
call sym.DuiLib32.dll_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x1002da96
call sym.DuiLib32.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x1002daad
push 2
push edi
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call fcn.100408e0
add esp, 0xc
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x1002da0d
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2d4]
push ecx
push 1
push dword [ebp - 0x2cc]
push eax
call fcn.10040048
add esp, 0x14
test eax, eax
jne 0x1002da0d
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x1002da0d
push ebx
call fcn.1006d901
push 3
push ebx
mov esi, eax
push esi
push dword [ebp - 0x2d4]
push dword [ebp - 0x2c8]
call fcn.10040ca0
add esp, 0x18
test eax, eax
je 0x1002db3f
cmp eax, 0x600
je 0x1002db3f
push esi
call fcn.1006d90a
pop ecx
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1002da0d
push dword [ebp - 0x2c8]
call fcn.1003fe6a
jmp 0x1002da72
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1002db54
push dword [ebp - 0x2c8]
call fcn.1003fe6a
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
test esi, esi
jne 0x1002dbe6
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x1002dbe2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x1002dbe2
push ebx
mov dword [ebp - 0x2c8], edi
call fcn.1006d901
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x2c8]
push eax
push ebx
push esi
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], ebx
je 0x1002dbde
push esi
call fcn.1006d90a
pop ecx
mov esi, edi
test esi, esi
jne 0x1002dbe6
xor eax, eax
jmp 0x1002dc21
push 0x10
call fcn.1006da6b
pop ecx
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x1002dc08
mov ecx, eax
call fcn.10001300
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
push ebx
push esi
call fcn.10001610
push 1
push esi
call fcn.1006d8f3
pop ecx
pop ecx
mov eax, edi
call fcn.1006d943
ret 4