Function at 0x1009a060
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029347b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x1035dd3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d4], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x94]
push sym.nsInstall.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourcePath
mov dword [ebp - 0x2cc], ebx
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_class_DuiLib::CDuiString_const__
mov dword [ebp - 4], 0
mov eax, dword [sym.nsInstall.dll_class_DuiLib::CDuiString_DuiLib::CPaintManagerUI::m_pStrResourceZip]
cmp word [eax], 0
jne 0x1009a157
test ebx, ebx
je 0x1009a0d3
push ebx
lea ecx, [ebp - 0x94]
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1009a34e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x1009a34e
push esi
mov dword [ebp - 0x2c8], 0
call fcn.10260577
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x1009a30c
push edi
call fcn.10260580
add esp, 4
jmp 0x1009a34e
push eax
lea ecx, [ebp - 0x94]
call sym.nsInstall.dll_public:_void___thiscall_DuiLib::CDuiString::Append_wchar_t_const__
cmp byte [sym.nsInstall.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x1009a177
mov ebx, dword [sym.nsInstall.dll_void__DuiLib::CPaintManagerUI::m_hResourceZip]
jmp 0x1009a27f
mov ebx, dword [ebp - 0x94]
push 0x340
call fcn.1025fb94
mov esi, eax
add esp, 4
mov dword [ebp - 0x2d0], esi
lea edi, [esi + 0x138]
mov dword [esi], 0
push edi
push 0x104
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x1009a1c0
mov eax, dword [0x10329f00]
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c8], eax
cmp eax, 0xffffffff
je 0x1009a336
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov esi, eax
cmp esi, 1
push 0x1c
sete bl
call fcn.1025fb94
mov edi, eax
add esp, 4
mov byte [edi], 1
mov byte [edi + 1], bl
mov ecx, dword [ebp - 0x2c8]
mov dword [edi + 4], ecx
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
cmp esi, 1
jne 0x1009a249
push esi
push 0
push 0
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.10065610
mov esi, dword [ebp - 0x2d0]
mov dword [esi], eax
mov eax, dword [0x10365a1c]
mov dword [0x103658c8], eax
test eax, eax
jne 0x1009a340
push 8
call fcn.1025fb94
mov ebx, eax
add esp, 4
mov dword [ebx], 1
mov dword [ebx + 4], esi
test ebx, ebx
je 0x1009a34e
mov edx, dword [ebp - 0x2cc]
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov ecx, ebx
call fcn.10066cd0
add esp, 0xc
test eax, eax
jne 0x1009a34e
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x1009a34e
push esi
call fcn.10260577
mov edx, dword [ebp - 0x2d0]
mov edi, eax
push esi
push edi
mov ecx, ebx
call fcn.10066e80
add esp, 0xc
test eax, eax
je 0x1009a2fc
cmp eax, 0x600
je 0x1009a2fc
push edi
call fcn.10260580
add esp, 4
cmp byte [sym.nsInstall.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x1009a34e
mov ecx, ebx
call fcn.10066fd0
jmp 0x1009a34e
cmp byte [sym.nsInstall.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x1009a30c
mov ecx, ebx
call fcn.10066fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
cmp eax, ecx
je 0x1009a32c
push eax
call fcn.10265f8b
add esp, 4
test edi, edi
jne 0x1009a405
jmp 0x1009a36e
mov dword [0x103658c8], 0x200
push 0x340
push esi
call fcn.1025fbc4
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x94]
cmp eax, ecx
je 0x1009a36e
push eax
call fcn.10265f8b
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1009a3e1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x1009a3e1
push esi
mov dword [ebp - 0x2cc], 0
call fcn.10260577
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2cc]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x1009a401
push edi
call fcn.10260580
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102601ec
mov esp, ebp
pop ebp
ret 4
test edi, edi
je 0x1009a3e1
mov ecx, dword [ebp - 0x2d4]
push esi
push edi
call sym.nsInstall.dll_private:_class_Gdiplus::Image____thiscall_DuiLib::CGifAnimUI::LoadGifFromMemory_void___unsigned_int_
push 1
push edi
mov esi, eax
call fcn.1025fbc4
add esp, 8
mov eax, esi
jmp 0x1009a3e3