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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1118e480
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x112194bc]
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 - 0x2bc], ecx
push dword [0x11219088]
xor esi, esi
mov dword [ebp - 0x4c], 7
xor edi, edi
mov dword [ebp - 0x50], esi
cmp dword [0x1121908c], 8
mov eax, sym.DuiLib.dll_class_faw::String_DuiLib::CPaintManagerUI::m_pStrResourcePath
cmovae eax, dword [sym.DuiLib.dll_class_faw::String_DuiLib::CPaintManagerUI::m_pStrResourcePath]
xor ecx, ecx
mov word [ebp - 0x60], cx
lea ecx, [ebp - 0x60]
push eax
call fcn.1100f550
mov dword [ebp - 0x48], esi
mov ecx, dword [0x112190a4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
test ecx, ecx
jne 0x1106475c
push dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
mov word [ebp - 0x28], ax
call fcn.1100f550
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 1
call fcn.110170b0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x110646a5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1106469b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11064c23
push edx
push ecx
call fcn.110d0a5e
add esp, 8
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push 0
cmovae eax, dword [ebp - 0x60]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x110646e0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], eax
call fcn.1100e280
jmp 0x11064b65
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x11064703
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x11064b65
push esi
mov dword [ebp - 0x2b0], 0
call fcn.110d0a6c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2b0]
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 - 0x2b0], esi
je 0x11064af5
push edi
call fcn.110d0a75
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
xor edi, edi
call fcn.1100e280
jmp 0x11064b65
cmp dword [0x112190a8], 8
mov eax, sym.DuiLib.dll_class_faw::String_DuiLib::CPaintManagerUI::m_pStrResourceZip
push ecx
cmovae eax, dword [sym.DuiLib.dll_class_faw::String_DuiLib::CPaintManagerUI::m_pStrResourceZip]
lea ecx, [ebp - 0x28]
xor edx, edx
push eax
mov word [ebp - 0x28], dx
call fcn.1100f550
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 4], 2
call fcn.110170b0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x110647d8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x110647ce
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11064c28
push edx
push ecx
call fcn.110d0a5e
add esp, 8
cmp byte [sym.DuiLib.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
je 0x110647f2
mov ebx, dword [sym.DuiLib.dll_void__DuiLib::CPaintManagerUI::m_hResourceZip]
mov dword [ebp - 0x2b0], ebx
jmp 0x1106492a
cmp dword [0x112190c4], 8
mov eax, sym.DuiLib.dll_class_faw::String_DuiLib::CPaintManagerUI::m_pStrResourceZipPwd
push dword [0x112190c0]
cmovae eax, dword [sym.DuiLib.dll_class_faw::String_DuiLib::CPaintManagerUI::m_pStrResourceZipPwd]
xor ecx, ecx
mov word [ebp - 0x7c], cx
lea ecx, [ebp - 0x7c]
push eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
call fcn.1100f550
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.11073dc0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x4c], 8
push ecx
cmovae eax, dword [ebp - 0x60]
push eax
call fcn.1104b660
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov byte [ebp - 4], 3
mov ebx, eax
mov dword [ebp - 0x2b0], ebx
cmp edx, 0x10
jb 0x110648af
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x110648a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11064c2d
push edx
push ecx
call fcn.110d0a5e
add esp, 8
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x6c], 0
mov word [eax], cx
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x11064916
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1106490c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11064c32
push edx
push ecx
call fcn.110d0a5e
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
test ebx, ebx
jne 0x11064942
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x11064b65
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x2b8], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
call fcn.1100f550
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
push 1
cmovae eax, dword [ebp - 0x44]
push 0x111a6d04
push 0
push dword [ebp - 0x34]
mov byte [ebp - 4], 5
push eax
call fcn.11059540
mov ebx, eax
add esp, 0x14
cmp ebx, dword [section..data]
je 0x110649e5
push 1
push 0x111a8a18
push 1
push ebx
lea ecx, [ebp - 0x44]
call fcn.1105fc50
cmp dword [ebp - 0x30], 8
lea eax, [ebx + 2]
push 1
push 0x111a6d04
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
push ecx
call fcn.11059540
mov ebx, eax
add esp, 0x14
cmp ebx, dword [section..data]
jne 0x110649a3
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2ac]
mov ebx, dword [ebp - 0x2b0]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x2b8]
push ecx
push 1
push eax
push ebx
call fcn.1104ab00
add esp, 0x14
test eax, eax
je 0x11064a30
lea ecx, [ebp - 0x44]
call fcn.1100e280
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
call fcn.1100e280
jmp 0x11064b65
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x11064a14
push esi
call fcn.110d0a6c
push esi
mov edi, eax
push edi
push dword [ebp - 0x2b8]
push ebx
call fcn.1104bdb0
add esp, 0x14
test eax, eax
je 0x11064a7a
cmp eax, 0x600
je 0x11064a7a
push edi
call fcn.110d0a75
add esp, 4
xor edi, edi
cmp byte [sym.DuiLib.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x11064a14
push ebx
call fcn.1104a660
add esp, 4
jmp 0x11064a14
cmp byte [sym.DuiLib.dll_bool_DuiLib::CPaintManagerUI::m_bCachedResourceZip], 0
jne 0x11064a8c
push ebx
call fcn.1104a660
add esp, 4
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x34], 0
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
mov byte [ebp - 4], 0
mov word [eax], cx
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x11064ae1
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x11064ad7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11064c37
push edx
push ecx
call fcn.110d0a5e
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x60]
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov word [eax], cx
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x11064b4d
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x11064b43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11064c3c
push edx
push ecx
call fcn.110d0a5e
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
test edi, edi
jne 0x11064bd7
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x11064bd7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x11064bd7
push esi
mov dword [ebp - 0x2b4], 0
call fcn.110d0a6c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x2b4]
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 - 0x2b4], esi
je 0x11064bd7
push edi
call fcn.110d0a75
add esp, 4
xor edi, edi
lea eax, [ebp - 0x2c0]
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov esi, eax
call fcn.110d0a75
mov ecx, dword [ebp - 0x2bc]
add esp, 4
add ecx, 0x2f8
push esi
call sym.DuiLib.dll_public:_bool___thiscall_DuiLib::CStdPtrArray::Add_void__
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.110d0a88
mov esp, ebp
pop ebp
ret 8
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
int3