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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100666c1
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x100a501c]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x100a501c]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edx, dword [sym.DTLUI.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
xor esi, esi
mov dword [esp + 0x1c], eax
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
mov dword [esp + 0x138], esi
mov eax, dword [sym.DTLUI.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
cmp word [eax], si
jne 0x1003156e
test edi, edi
je 0x100314d0
push edi
lea ecx, [esp + 0x18]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10031546
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x1003153f
push esi
mov dword [esp + 0x14], 0
call fcn.10062a58
add esp, 4
push 0
lea edx, [esp + 0x14]
push edx
push esi
push eax
push edi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], esi
je 0x1003153f
mov eax, dword [ebx]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebx], 0
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x10031567
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, esi
jmp 0x10031798
cmp byte [ebp + 0x10], 0
je 0x10031659
cmp byte [sym.DTLUI.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x1003158c
mov esi, dword [sym.DTLUI.dll_void__DuiLib::CPaintManagerUI::m_hXmlResourceZip]
jmp 0x1003160e
mov ecx, dword [sym.DTLUI.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath]
push 0xffffffffffffffff
lea edx, [esp + 0xa4]
xor eax, eax
push ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], edx
mov word [esp + 0xa8], ax
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
mov byte [esp + 0x138], 1
mov edx, dword [sym.DTLUI.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrXmlZip]
push edx
lea ecx, [esp + 0xa0]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov eax, dword [esp + 0x9c]
push 2
push 0
push eax
call fcn.100200d0
mov esi, eax
mov byte [esp + 0x144], 0
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xac]
add esp, 0xc
cmp eax, ecx
je 0x1003160e
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test esi, esi
je 0x10031659
push esi
push 0
push 0
push ebx
push edi
call sym.DTLUI.dll_public:_static_int___cdecl_DuiLib::CPaintManagerUI::LoadFileDataFromZip_wchar_t_const___unsigned_char____void___void___void__
add esp, 0x14
cmp byte [sym.DTLUI.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
mov edi, eax
jne 0x10031631
call fcn.10020290
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp eax, edx
je 0x10031652
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, edi
jmp 0x10031798
cmp byte [sym.DTLUI.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x10031673
mov esi, dword [sym.DTLUI.dll_void__DuiLib::CPaintManagerUI::m_hBaseResourceZip]
mov edi, dword [sym.DTLUI.dll_void__DuiLib::CPaintManagerUI::m_hSkinExResourceZip]
jmp 0x1003171f
mov eax, dword [sym.DTLUI.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
push eax
lea ecx, [esp + 0x18]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov ecx, dword [esp + 0x14]
push 2
push 0
push ecx
call fcn.100200d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10031723
mov ecx, dword [sym.DTLUI.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath]
push 0xffffffffffffffff
lea edx, [esp + 0xa4]
xor eax, eax
push ecx
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa4], edx
mov word [esp + 0xa8], ax
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_wchar_t_const___int_
mov byte [esp + 0x138], 2
mov edx, dword [sym.DTLUI.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZipEx]
push edx
lea ecx, [esp + 0xa0]
call sym.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
mov eax, dword [esp + 0x9c]
push 2
push 0
push eax
call fcn.100200d0
mov edi, eax
mov byte [esp + 0x144], 0
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0xac]
add esp, 0xc
cmp eax, ecx
je 0x1003171f
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
test esi, esi
jne 0x10031748
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
cmp eax, edx
je 0x10031744
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor eax, eax
jmp 0x10031798
mov eax, dword [esp + 0x10]
push 0
push edi
push esi
push ebx
push eax
call sym.DTLUI.dll_public:_static_int___cdecl_DuiLib::CPaintManagerUI::LoadFileDataFromZip_wchar_t_const___unsigned_char____void___void___void__
add esp, 0x14
cmp byte [sym.DTLUI.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
mov ebx, eax
jne 0x10031775
call fcn.10020290
test edi, edi
je 0x10031775
mov esi, edi
call fcn.10020290
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0x10031796
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.10062a76
mov esp, ebp
pop ebp
ret