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

Disassembly:
push ebp
sub esp, 0x2b4
lea ebp, [esp - 4]
mov eax, dword [0x66a8c4]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push 0x18
mov eax, 0x5caebf
call fcn.0059591b
mov dword [ebp - 0x24], ecx
mov esi, dword [ebp + 0x2c0]
mov dword [ebp - 0x20], esi
call sym.mininews.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp + 0x230]
call sym.mininews.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
xor edi, edi
mov dword [ebp - 4], edi
call sym.mininews.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.mininews.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
je 0x51b5f6
push esi
lea ecx, [ebp + 0x230]
call sym.mininews.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp + 0x230]
call sym.mininews.exe_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 - 0x10], eax
cmp eax, 0xffffffff
jne 0x51b5b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call sym.mininews.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x51b6d0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x51b59d
push esi
mov dword [ebp - 0x18], edi
call fcn.004edb78
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x51b6bd
push ebx
call fcn.00591683
pop ecx
jmp 0x51b59d
call sym.mininews.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp + 0x230]
call sym.mininews.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
call sym.mininews.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x51b617
call sym.mininews.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
jmp 0x51b62e
push 2
push edi
lea ecx, [ebp + 0x230]
call sym.mininews.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.005429cc
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x51b59d
lea eax, [ebp]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x10]
call fcn.005410ca
add esp, 0x14
test eax, eax
jne 0x51b59d
mov esi, dword [ebp + 0x22c]
cmp esi, edi
je 0x51b59d
push esi
call fcn.004edb78
push 3
push esi
mov ebx, eax
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call fcn.00542a29
add esp, 0x18
cmp eax, edi
je 0x51b6ab
cmp eax, 0x600
je 0x51b6ab
push ebx
call fcn.00591683
pop ecx
call sym.mininews.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x51b59d
push dword [ebp - 0x10]
call fcn.00542a63
jmp 0x51b5f3
call sym.mininews.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x51b6bd
push dword [ebp - 0x10]
call fcn.00542a63
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x230]
call sym.mininews.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
cmp ebx, edi
jne 0x51b73a
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x51b736
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x51b736
push esi
mov dword [ebp - 0x14], edi
call fcn.004edb78
pop ecx
push edi
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x51b732
push ebx
call fcn.00591683
pop ecx
xor ebx, ebx
cmp ebx, edi
jne 0x51b73a
xor eax, eax
jmp 0x51b74f
mov ecx, dword [ebp - 0x24]
push esi
push ebx
call sym.mininews.exe_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push ebx
mov esi, eax
call fcn.0059085a
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.00590c4b
add ebp, 0x2b8
leave
ret 4