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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1118f9be
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
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
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x88], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
call fcn.1100f550
mov dword [ebp - 0x80], 0
lea ecx, [ebp - 0x168]
mov dword [ebp - 4], 0
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::tagTDrawInfo::constructor_void_
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 1
jne 0x11085714
push 0
sub esp, 8
lea ecx, [ebp - 0x98]
mov eax, esp
mov dword [eax], 0x111997f0
mov dword [eax + 4], 0
cmp dword [ebp - 0x84], 8
cmovae ecx, dword [ebp - 0x98]
sub esp, 8
mov edx, esp
lea esi, [ecx + 2]
mov dword [edx], ecx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x110856d1
sub ecx, esi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x168]
call sym.DuiLib.dll_public:_void___thiscall_DuiLib::tagTDrawInfo::Parse_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t____class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t____class_DuiLib::CPaintManagerUI__
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
push dword [ebp - 0x120]
cmovae eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x98]
push eax
call fcn.1100f550
xor eax, eax
mov dword [ebp - 0x39c], eax
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x3bc]
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourcePath_void_const
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
call fcn.1100f550
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x3a4]
mov byte [ebp - 4], 2
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_const
add esp, 4
cmp dword [eax + 4], 0
jne 0x1108585f
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push dword [ebp - 0x88]
cmovae eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x2c]
push eax
call fcn.110170b0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x110857d7
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1100e280
jmp 0x11085d36
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 0x3a8], edi
test edi, edi
jne 0x110857fd
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1100e280
jmp 0x11085d36
push edi
mov dword [ebp - 0x3ac], 0
call fcn.110d0a6c
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x3ac]
mov dword [ebp - 0x39c], ebx
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3ac], edi
je 0x11085cc5
push ebx
call fcn.110d0a75
add esp, 4
mov byte [ebp - 4], 1
xor eax, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x39c], eax
call fcn.1100e280
jmp 0x11085d36
lea eax, [ebp - 0x3a4]
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZip_void_const
add esp, 4
mov dword [ebp - 0x50], 0
xor ecx, ecx
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], cx
lea ecx, [ebp - 0x60]
push dword [eax + 4]
push dword [eax]
call fcn.1100f550
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 3
call fcn.110170b0
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x110858e8
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x110858de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11085e40
push edx
push ecx
call fcn.110d0a5e
add esp, 8
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
je 0x11085903
call sym.DuiLib.dll_public:_static_void____cdecl_DuiLib::CPaintManagerUI::GetResourceZipHandle_void_
mov esi, eax
mov dword [ebp - 0x3ac], esi
jmp 0x11085a39
lea eax, [ebp - 0x3b0]
push eax
call sym.DuiLib.dll_public:_static_class_std::basic_string_view_wchar_t__struct_std::char_traits_wchar_t_____cdecl_DuiLib::CPaintManagerUI::GetResourceZipPwd_void_const
add esp, 4
xor edx, edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], dx
call fcn.1100f550
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
push 0
push dword [ebp - 0x6c]
cmovae eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 4
push eax
call fcn.1108d520
cmp dword [ebp - 0x4c], 0x10
lea ecx, [ebp - 0x60]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
cmovae ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.1104b660
mov edx, dword [ebp - 0x4c]
add esp, 0x18
mov byte [ebp - 4], 4
mov esi, eax
mov dword [ebp - 0x3ac], esi
cmp edx, 0x10
jb 0x110859be
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x110859b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11085e45
push edx
push ecx
call fcn.110d0a5e
add esp, 8
cmp dword [ebp - 0x68], 8
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x50], 0
cmovae eax, dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x6c], 0
mov word [eax], cx
mov edx, dword [ebp - 0x68]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x11085a25
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x11085a1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11085e4a
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 esi, esi
jne 0x11085a4e
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1100e280
jmp 0x11085d36
lea eax, [ebp - 0x98]
mov dword [ebp - 0x3b4], 0
push eax
lea ecx, [ebp - 0x48]
call fcn.1102f710
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x3a4]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3a4], 0x111a6d04
mov dword [ebp - 0x3a0], 1
call fcn.11073ee0
mov esi, eax
cmp esi, dword [section..data]
je 0x11085b73
push 1
push 0x111a8a18
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.1105fc50
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x48]
add esi, 2
cmp dword [ebp - 0x34], 8
cmovae edx, dword [ebp - 0x48]
mov dword [ebp - 0x3a0], edx
cmp ecx, 1
jb 0x11085b64
lea eax, [ecx - 1]
cmp esi, eax
ja 0x11085b64
lea eax, [edx + ecx*2]
mov dword [ebp - 0x3b8], eax
lea esi, [edx + esi*2]
nop
mov ecx, eax
mov edx, 0
sub ecx, esi
sar ecx, 1
je 0x11085b14
cmp word [esi], 0x5c
je 0x11085b12
cmp ecx, 1
je 0x11085b14
add esi, 2
dec ecx
cmp word [esi], 0x5c
jne 0x11085b03
mov edx, esi
mov esi, edx
test esi, esi
je 0x11085b64
movzx ecx, word [esi]
mov edx, 0x5c
mov edi, 1
mov eax, 0x111a6d04
cmp ecx, edx
jb 0x11085b4f
mov ebx, esi
sub ebx, eax
cmp cx, dx
ja 0x11085b4f
cmp edi, 1
je 0x11085b5a
movzx ecx, word [ebx + eax + 2]
add eax, 2
dec edi
movzx edx, word [eax]
cmp cx, dx
jae 0x11085b37
mov eax, dword [ebp - 0x3b8]
add esi, 2
jmp 0x11085af0
sub esi, dword [ebp - 0x3a0]
sar esi, 1
jmp 0x11085b67
or esi, 0xffffffff
cmp esi, dword [section..data]
jne 0x11085aa5
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x398]
mov esi, dword [ebp - 0x3ac]
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3b4]
push ecx
push 1
push eax
push esi
call fcn.1104ab00
add esp, 0x14
test eax, eax
je 0x11085bbb
lea ecx, [ebp - 0x48]
call fcn.1100e280
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1100e280
jmp 0x11085d36
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x3a8], edi
test edi, edi
jne 0x11085be4
lea ecx, [ebp - 0x48]
call fcn.1100e280
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1100e280
jmp 0x11085d36
push edi
call fcn.110d0a6c
push edi
mov ebx, eax
mov dword [ebp - 0x39c], eax
push ebx
push dword [ebp - 0x3b4]
push esi
call fcn.1104bdb0
add esp, 0x14
test eax, eax
je 0x11085c4a
cmp eax, 0x600
je 0x11085c4a
push ebx
call fcn.110d0a75
add esp, 4
xor eax, eax
mov dword [ebp - 0x39c], eax
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11085c31
push esi
call fcn.1104a660
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.1100e280
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.1100e280
jmp 0x11085d36
call sym.DuiLib.dll_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::IsCachedResourceZip_void_
test al, al
jne 0x11085c5c
push esi
call fcn.1104a660
add esp, 4
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], 0
cmovae eax, dword [ebp - 0x48]
xor ecx, ecx
mov byte [ebp - 4], 2
mov word [eax], cx
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x11085cb1
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x11085ca7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11085e4f
push edx
push ecx
call fcn.110d0a5e
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov byte [ebp - 4], 1
mov word [eax], cx
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x11085d1a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x11085d10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x11085e54
push edx
push ecx
call fcn.110d0a5e
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
test ebx, ebx
jne 0x11085dbc
cmp dword [ebp - 0x84], 8
lea eax, [ebp - 0x98]
push 0
cmovae eax, dword [ebp - 0x98]
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x11085dbc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x11085dc2
push edi
mov dword [ebp - 0x3b8], 0
call fcn.110d0a6c
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x3b8]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3b8], edi
je 0x11085dc8
push ebx
call fcn.110d0a75
add esp, 4
xor ebx, ebx
jmp 0x11085dc8
mov edi, dword [ebp - 0x3a8]
mov ebx, dword [ebp - 0x39c]
xor esi, esi
test ebx, ebx
je 0x11085de0
push edi
push ebx
call sym.DuiLib.dll_public:_static_class_Gdiplus::Image____cdecl_DuiLib::CRenderEngine::GdiplusLoadImage_void___unsigned_int_
push ebx
mov esi, eax
call fcn.110d0a75
add esp, 0xc
lea ecx, [ebp - 0xb4]
call fcn.1100e280
lea ecx, [ebp - 0x114]
call fcn.1100e280
lea ecx, [ebp - 0x130]
call fcn.1100e280
lea ecx, [ebp - 0x14c]
call fcn.1100e280
lea ecx, [ebp - 0x168]
call fcn.1100e280
lea ecx, [ebp - 0x98]
call fcn.1100e280
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 - 0x10]
xor ecx, ebp
call fcn.110d0a88
mov esp, ebp
pop ebp
ret
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
call fcn.1112ace2
int3