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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4f44d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2cc], 0
call sym.Unstall_App.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_
push eax
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
call sym.Unstall_App.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
mov ecx, eax
call sym.Unstall_App.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
movzx eax, al
test eax, eax
je 0x461c6d
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_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.Unstall_App.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 - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x461b8d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x461e34
push 0
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x461bc2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x461e34
mov dword [ebp - 0x2e4], 0
mov eax, dword [ebp - 0x2cc]
push eax
call fcn.00485d4e
add esp, 4
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x2c8], ecx
push 0
lea edx, [ebp - 0x2e4]
push edx
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2e4]
cmp ecx, dword [ebp - 0x2cc]
je 0x461c68
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2e8], edx
mov eax, dword [ebp - 0x2e8]
push eax
call fcn.00487fed
add esp, 4
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x461e34
jmp 0x461e1a
call sym.Unstall_App.exe_public:_static_class_DuiLib::CDuiString_const____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_
push eax
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_class_DuiLib::CDuiString_const__
mov dword [ebp - 0x2d0], 0
call sym.Unstall_App.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx ecx, al
test ecx, ecx
je 0x461ca1
call sym.Unstall_App.exe_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov dword [ebp - 0x2d0], eax
jmp 0x461cbf
push 2
push 0
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
push eax
call fcn.0046c330
add esp, 0xc
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0
jne 0x461cdf
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x461e34
lea edx, [ebp - 0x2c4]
push edx
lea eax, [ebp - 0x2f0]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x2d0]
push edx
call fcn.0046b810
add esp, 0x14
test eax, eax
je 0x461d1d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x461e34
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x461d49
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x461e34
mov ecx, dword [ebp - 0x2cc]
push ecx
call fcn.00485d4e
add esp, 4
mov dword [ebp - 0x30c], eax
mov edx, dword [ebp - 0x30c]
mov dword [ebp - 0x2c8], edx
push 3
mov eax, dword [ebp - 0x2cc]
push eax
mov ecx, dword [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.0046c990
add esp, 0x14
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x461dff
cmp dword [ebp - 0x2e0], 0x600
je 0x461dff
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x300], ecx
mov edx, dword [ebp - 0x300]
push edx
call fcn.00487fed
add esp, 4
mov dword [ebp - 0x2c8], 0
call sym.Unstall_App.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx eax, al
test eax, eax
jne 0x461deb
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.0046b550
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
jmp 0x461e34
call sym.Unstall_App.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
movzx edx, al
test edx, edx
jne 0x461e1a
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.0046b550
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sym.Unstall_App.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
xor ecx, ecx
jne 0x461b05
cmp dword [ebp - 0x2c8], 0
jne 0x461f2a
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0xffffffff
jne 0x461e71
jmp 0x461f2a
push 0
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x461e94
jmp 0x461f2a
mov dword [ebp - 0x2dc], 0
mov ecx, dword [ebp - 0x2cc]
push ecx
call fcn.00485d4e
add esp, 4
mov dword [ebp - 0x2f8], eax
mov edx, dword [ebp - 0x2f8]
mov dword [ebp - 0x2c8], edx
push 0
lea eax, [ebp - 0x2dc]
push eax
mov ecx, dword [ebp - 0x2cc]
push ecx
mov edx, dword [ebp - 0x2c8]
push edx
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2dc]
cmp edx, dword [ebp - 0x2cc]
je 0x461f23
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x308]
push ecx
call fcn.00487fed
add esp, 4
mov dword [ebp - 0x2c8], 0
jmp 0x461f2a
cmp dword [ebp - 0x2c8], 0
jne 0x461f37
xor eax, eax
jmp 0x461f77
mov edx, dword [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2ec]
call sym.Unstall_App.exe_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2f4], ecx
mov edx, dword [ebp - 0x2f4]
push edx
call fcn.00487160
add esp, 4
mov eax, dword [ebp - 0x2fc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487ff2
mov esp, ebp
pop ebp
ret 4