Function at 0x40a582
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x8b0
lea ebp, [esp - 4]
mov eax, dword [0x490a44]
xor eax, ebp
mov dword [ebp + 0x8b0], eax
push 0x40
mov eax, 0x466107
call fcn.0044d0fa
mov esi, ecx
lea edi, [esi + 0x14]
push str.close
mov ecx, edi
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.tiqu
mov ecx, edi
mov dword [esi + 0x214], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push 0x46d108
mov ecx, edi
mov dword [esi + 0x21c], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.tietu
mov ecx, edi
mov dword [esi + 0x234], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.jieshao
mov ecx, edi
mov dword [esi + 0x238], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.biaoti
mov ecx, edi
mov dword [esi + 0x23c], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.sleep
mov ecx, edi
mov dword [esi + 0x240], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
mov dword [esi + 0x220], eax
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0xc4]
push str.view
mov ecx, edi
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.openfile
mov ecx, edi
mov dword [esi + 0x224], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
mov dword [esi + 0x228], eax
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0xc4]
push str.italicbtn1
mov ecx, edi
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.italicbtn2
mov ecx, edi
mov dword [esi + 0x24c], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.italicbtn3
mov ecx, edi
mov dword [esi + 0x250], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.soso
mov ecx, edi
mov dword [esi + 0x254], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.view_richedit
mov ecx, edi
mov dword [esi + 0x22c], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.filesize
mov ecx, edi
mov dword [esi + 0x230], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.haos1
mov ecx, edi
mov dword [esi + 0x258], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
mov ebx, str.haos3
push ebx
mov ecx, edi
mov dword [esi + 0x244], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
mov dword [esi + 0x248], eax
push str.zhuye1
mov ecx, edi
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.zhuye2
mov ecx, edi
mov dword [esi + 0xa88], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.view
mov ecx, edi
mov dword [esi + 0xa8c], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push str.cjieshao
mov ecx, edi
mov dword [esi + 0xa90], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
push ebx
mov ecx, edi
mov dword [esi + 0xa94], eax
call sym.DuiLib.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_char_const__const
mov ecx, dword [esi + 0x230]
mov dword [esi + 0xa98], eax
mov eax, dword [ecx]
push 0x46c9a0
call dword [eax + 0x2c]
mov ebx, 0x4696a0
push ebx
mov edi, 0x49220c
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0040320a
and dword [ebp - 4], 0
push str.view.jpg
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.0040320a
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401efc
cmp dword [ebp + 0xac], 0x10
mov eax, dword [ebp + 0x98]
jae 0x40a7af
lea eax, [ebp + 0x98]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.00409de0
mov ecx, dword [esi + 0x224]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x64]
mov ecx, dword [esi + 0x224]
push dword [ebp - 0x14]
mov eax, dword [ecx]
call dword [eax + 0x5c]
mov ecx, dword [esi + 0x224]
call sym.DuiLib.exe_public:_void___thiscall_DuiLib::CControlUI::Invalidate_void_
push ebx
lea eax, [ebp - 0x4c]
push edi
push eax
call fcn.0040320a
push str.text.ini
push eax
lea eax, [ebp + 0x78]
push eax
mov byte [ebp - 4], 3
call fcn.0040320a
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.00401efc
lea ecx, [ebp]
call fcn.00404248
cmp dword [ebp + 0x90], 0x10
mov eax, dword [ebp + 0x7c]
mov byte [ebp - 4], 6
jae 0x40a832
lea eax, [ebp + 0x7c]
push 0x469700
push eax
call fcn.0044c53d
mov ebx, eax
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40a94f
lea edi, [esi + 0x264]
push edi
push 0x46957c
push ebx
call fcn.0044dcfc
add esp, 0xc
cmp dword [edi], 1
jne 0x40a886
mov ecx, dword [esi + 0x254]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc4]
mov ecx, dword [esi + 0xa98]
mov eax, dword [ecx]
push 1
call dword [eax + 0xc4]
push 0x7ff
lea eax, [ebp + 0xb1]
push 0
push eax
mov byte [ebp + 0xb0], 0
call fcn.0044b9d0
push ebx
mov ebx, 0x400
lea edi, [esi + 0xe9c]
push ebx
push edi
call fcn.0044daaa
mov ecx, dword [esi + 0xa98]
mov eax, dword [ecx]
add esp, 0x18
push edi
call dword [eax + 0x2c]
push dword [ebp - 0x10]
mov edi, 0x800
lea eax, [esi + 0x268]
push edi
push eax
call fcn.0044daaa
push dword [ebp - 0x10]
lea eax, [esi + 0xa9c]
push ebx
push eax
call fcn.0044daaa
add esp, 0x18
lea eax, [esi + 0xa9c]
push eax
mov ecx, esi
call fcn.00401401
push dword [ebp - 0x10]
lea eax, [ebp + 0xb0]
push edi
push eax
call fcn.0044daaa
mov ecx, dword [esi + 0x240]
mov eax, dword [ecx]
add esp, 0xc
lea edx, [ebp + 0xb0]
push edx
call dword [eax + 0x2c]
push dword [ebp - 0x10]
lea eax, [ebp + 0xb0]
push edi
push 1
push eax
call fcn.0044bddd
mov esi, dword [esi + 0x23c]
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp + 0xb0]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
push dword [ebp - 0x10]
call fcn.0044bac1
pop ecx
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.004042a1
push 0
push 1
lea ecx, [ebp + 0x78]
call fcn.00401efc
push 0
push 1
lea ecx, [ebp + 0x94]
call fcn.00401efc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8b0]
xor ecx, ebp
call fcn.0044c554
add ebp, 0x8b4
leave
ret