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

Disassembly:
push 0x2c8
mov eax, 0x1006bb21
call fcn.1005416a
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 0x10018472
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::operator_wchar_t_const__void_const
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
jne 0x1001841e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x10018564
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x1001840a
push ebx
mov dword [ebp - 0x2d0], edi
call fcn.100540e3
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 0x10018551
push esi
call fcn.100540ec
pop ecx
jmp 0x1001840a
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 0x10018493
call sym.DuiLib32.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x100184aa
push 2
push edi
lea ecx, [ebp - 0x94]
call sym.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.1002801b
add esp, 0xc
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x1001840a
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2d4]
push ecx
push 1
push dword [ebp - 0x2cc]
push eax
call fcn.10027a5c
add esp, 0x14
test eax, eax
jne 0x1001840a
mov ebx, dword [ebp - 0x98]
test ebx, ebx
je 0x1001840a
push ebx
call fcn.100540e3
push 3
push ebx
mov esi, eax
push esi
push dword [ebp - 0x2d4]
push dword [ebp - 0x2c8]
call fcn.100283db
add esp, 0x18
test eax, eax
je 0x1001853c
cmp eax, 0x600
je 0x1001853c
push esi
call fcn.100540ec
pop ecx
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x1001840a
push dword [ebp - 0x2c8]
call fcn.100278b6
jmp 0x1001846f
call sym.DuiLib32.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x10018551
push dword [ebp - 0x2c8]
call fcn.100278b6
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 0x100185e3
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 0x100185df
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x100185df
push ebx
mov dword [ebp - 0x2c8], edi
call fcn.100540e3
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 0x100185db
push esi
call fcn.100540ec
pop ecx
mov esi, edi
test esi, esi
jne 0x100185e3
xor eax, eax
jmp 0x1001861e
push 0x10
call fcn.100541fb
pop ecx
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10018605
mov ecx, eax
call fcn.10001210
mov edi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, edi
push ebx
push esi
call fcn.100012c0
push 1
push esi
call fcn.100540d5
pop ecx
pop ecx
mov eax, edi
call fcn.10054125
ret 4