Function at 0x404b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ff7b
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x44c060]
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 ebx, ecx
mov dword [ebp - 0x100], ebx
mov edx, dword [ebp + 0x18]
movq xmm1, qword [ebp + 0x10]
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp + 0x18]
mov dword [ebp - 0xd8], eax
lea eax, [edx - 0x37]
movq qword [ebp - 0x64], xmm1
mov dword [ebp - 0x64], eax
add eax, 0x28
movq qword [ebp - 0x5c], xmm0
mov dword [ebp - 0x5c], eax
lea eax, [edx - 0xc8]
movq qword [ebp - 0x44], xmm1
mov dword [ebp - 0x44], eax
add eax, 0xa0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], eax
lea eax, [edx - 0x140]
movq qword [ebp - 0x54], xmm1
mov dword [ebp - 0x54], eax
add eax, 0x78
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0x4c], eax
lea eax, [edx - 0x168]
lea ecx, [edx - 0x2ff]
movq qword [ebp - 0x74], xmm1
mov dword [ebp - 0x74], eax
add eax, 0x28
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x6c], eax
lea eax, [ecx + 0x19a]
movq qword [ebp - 0x1c], xmm0
sub dword [ebp - 0x18], 0x14
mov dword [ebp - 0x1c], eax
lea eax, [ecx + 0x19a]
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
lea eax, [edx - 0x316]
movq qword [ebp - 0xfc], xmm1
mov dword [ebp - 0xfc], eax
movq qword [ebp - 0x34], xmm1
add dword [ebp - 0x30], 0xf
movq qword [ebp - 0xf4], xmm0
sub dword [ebp - 0xf0], 0x14
add eax, 0x1e
xor esi, esi
movq qword [ebp - 0x24], xmm1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xec], esi
push str.FONT_COMMON_YAHEI_12
mov dword [ebp - 4], esi
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTYLE_TABLE____cdecl_OUI::OSTYLE_TABLE::GetStyleTable_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_struct_OUI::IFont____thiscall_OUI::OSTYLE_TABLE::GetFont_wchar_t_const__]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COPoint::constructor_int__int_]
dec ecx
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xdc], eax
call edi
mov ecx, dword [ebp + 0x1c]
dec ecx
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 0x84]
call edi
lea eax, [ebp - 0x14]
push eax
push 0xe9e9e9
push esi
mov byte [ebp - 4], 1
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OGDI_FACTORY____cdecl_OUI::OGDI_FACTORY::GetGdiFactory_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_bool___thiscall_OUI::OGDI_FACTORY::CreatePen_int__int__int__struct_OUI::IPen___]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x404d0e
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0xd8]
push dword [ebp - 0x84]
mov edx, dword [ecx]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push eax
call dword [edx + 0x60]
lea eax, [ebx + 0x134]
mov ecx, eax
mov dword [ebp - 0xe4], eax
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::SetRectEmpty_void_]
cmp dword [ebx + 0x174], 0
mov edx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::constructor_void_]
mov edi, dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
je 0x404e63
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xe0], 0xeaac2b
call edx
lea eax, [ebp - 0xe8]
push str.220648
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTRING_TABLE____cdecl_OUI::OSTRING_TABLE::GetStringTable_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_class_OUI::COString___thiscall_OUI::OSTRING_TABLE::LoadStringW_wchar_t_const__]
push 0x40425
lea ecx, [ebp - 0x94]
push ecx
push dword [ebp - 0xdc]
mov ecx, eax
mov byte [ebp - 4], 2
call edi
push eax
mov ecx, ebx
call dword [sym.imp.ouilibx.dll_public:_struct_HDC____const___thiscall_OUI::COVWnd::GetDC_void_]
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::COUIManager____cdecl_OUI::COUIManager::GetUIManager_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COUIManager::CalStringRect_struct_HDC_____wchar_t_const___struct_OUI::IFont___struct_tagRECT___int_]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 1
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
lea ecx, [ebx + 0x134]
mov ebx, dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
call ebx
lea ecx, [ebp - 0x94]
mov edi, eax
call ebx
cmp eax, edi
jle 0x404de0
mov eax, dword [ebp - 0xe4]
movq xmm0, qword [ebp - 0x64]
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x5c]
movq qword [eax + 8], xmm0
jmp 0x404dec
mov ecx, dword [ebp - 0xe4]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::SetRectEmpty_void_]
lea eax, [ebp - 0xe8]
push str.220648
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::OSTRING_TABLE____cdecl_OUI::OSTRING_TABLE::GetStringTable_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_class_OUI::COString___thiscall_OUI::OSTRING_TABLE::LoadStringW_wchar_t_const__]
mov edi, eax
mov ebx, dword [ebp - 0xd8]
push 0xeaac2b
mov byte [ebp - 4], 3
mov ebx, dword [ebx]
push 0x40025
lea ecx, [ebp - 0x64]
call dword [sym.imp.ouilibx.dll_public:_struct_tagRECT____thiscall_OUI::CORect::operator_struct_tagRECT__void_]
mov ecx, edi
mov edi, dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
call edi
mov ecx, dword [ebp - 0xd8]
push eax
push dword [ebp - 0xdc]
call dword [ebx + 0x84]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 1
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::COString::destructor_void_]
mov ebx, dword [ebp - 0x100]
mov edx, dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::constructor_void_]
jmp 0x404e6c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebx + 0x17c]
cmp eax, 3
ja case.default.0x404e77
jmp dword [eax*4 + 0x40536c]
mov dword [ebp - 0xe0], 0x333333
jmp case.default.0x404e77
mov dword [ebp - 0xe0], 0xab2e
lea ecx, [ebp - 0xa4]
call edx
push 0x40425
lea ecx, [ebp - 0xa4]
push ecx
push dword [ebp - 0xdc]
lea ecx, [ebx + 0xa0]
call edi
push eax
mov ecx, ebx
call dword [sym.imp.ouilibx.dll_public:_struct_HDC____const___thiscall_OUI::COVWnd::GetDC_void_]
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::COUIManager____cdecl_OUI::COUIManager::GetUIManager_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COUIManager::CalStringRect_struct_HDC_____wchar_t_const___struct_OUI::IFont___struct_tagRECT___int_]
lea ecx, [ebp - 0xa4]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
lea ecx, [ebp - 0x44]
mov edi, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
cmp edi, eax
jle 0x404f05
movq xmm0, qword [ebp - 0x44]
movq qword [ebx + 0x114], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [ebx + 0x11c], xmm0
jmp 0x404f11
lea ecx, [ebx + 0x114]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::SetRectEmpty_void_]
push dword [ebp - 0xe0]
mov eax, dword [ebp - 0xd8]
push 0x40025
mov edi, dword [eax]
lea ecx, [ebp - 0x44]
call dword [sym.imp.ouilibx.dll_public:_struct_tagRECT____thiscall_OUI::CORect::operator_struct_tagRECT__void_]
push eax
lea ecx, [ebx + 0xa0]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov ecx, dword [ebp - 0xd8]
push eax
push dword [ebp - 0xdc]
call dword [edi + 0x84]
lea ecx, [ebp - 0xd4]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::constructor_void_]
push 0x40425
lea ecx, [ebp - 0xd4]
push ecx
push dword [ebp - 0xdc]
lea ecx, [ebx + 0x98]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
mov ecx, ebx
call dword [sym.imp.ouilibx.dll_public:_struct_HDC____const___thiscall_OUI::COVWnd::GetDC_void_]
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::COUIManager____cdecl_OUI::COUIManager::GetUIManager_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COUIManager::CalStringRect_struct_HDC_____wchar_t_const___struct_OUI::IFont___struct_tagRECT___int_]
lea ecx, [ebp - 0xd4]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
lea ecx, [ebp - 0x54]
mov edi, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
cmp edi, eax
jle 0x404fc6
movq xmm0, qword [ebp - 0x54]
movq qword [ebx + 0xf4], xmm0
movq xmm0, qword [ebp - 0x4c]
movq qword [ebx + 0xfc], xmm0
jmp 0x404fd2
lea ecx, [ebx + 0xf4]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::SetRectEmpty_void_]
mov eax, dword [ebp - 0xd8]
push 0xff
mov edi, dword [eax]
push 0x40025
lea ecx, [ebp - 0x54]
call dword [sym.imp.ouilibx.dll_public:_struct_tagRECT____thiscall_OUI::CORect::operator_struct_tagRECT__void_]
push eax
lea ecx, [ebx + 0x98]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov ecx, dword [ebp - 0xd8]
push eax
push dword [ebp - 0xdc]
call dword [edi + 0x84]
mov eax, dword [0x44ef7c]
test al, 1
jne 0x40502b
or eax, 1
push 0x434480
mov dword [0x44ef7c], eax
call fcn.0042e223
add esp, 4
lea ecx, [ebx + 0x9c]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov edi, eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405048
xor edi, edi
jmp 0x405060
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40505a
xor edi, edi
jmp 0x405060
shr edi, 5
and edi, 1
lea ecx, [ebx + 0x124]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::SetRectEmpty_void_]
cmp dword [ebx + 0x174], 0
je 0x4050d2
test edi, edi
je 0x4050d2
push str.IDB_VIRSCANER_OPEN_FOLDER
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::ORES_TABLE____cdecl_OUI::ORES_TABLE::GetResTable_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_struct_OUI::IImage____thiscall_OUI::ORES_TABLE::LoadImageW_wchar_t_const__]
mov edi, eax
test edi, edi
je 0x4050d2
mov ecx, dword [edi]
mov esi, edi
push edi
mov dword [ebp - 0xec], esi
call dword [ecx + 4]
movq xmm0, qword [ebp - 0x74]
mov ecx, dword [ebp - 0xd8]
push 2
push dword [ebx + 0x54]
movq qword [ebx + 0x124], xmm0
movq xmm0, qword [ebp - 0x6c]
lea edx, [ebp - 0x74]
movq qword [ebx + 0x12c], xmm0
mov eax, dword [ecx]
push edx
push edi
call dword [eax + 0xbc]
lea ecx, [ebp - 0xc4]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::constructor_void_]
push 0x40424
lea ecx, [ebp - 0xc4]
push ecx
push dword [ebp - 0xdc]
lea ecx, [ebx + 0x94]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
mov ecx, ebx
call dword [sym.imp.ouilibx.dll_public:_struct_HDC____const___thiscall_OUI::COVWnd::GetDC_void_]
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::COUIManager____cdecl_OUI::COUIManager::GetUIManager_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COUIManager::CalStringRect_struct_HDC_____wchar_t_const___struct_OUI::IFont___struct_tagRECT___int_]
lea ecx, [ebp - 0xc4]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
lea ecx, [ebp - 0x24]
mov edi, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
cmp edi, eax
jle 0x40514b
movq xmm0, qword [ebp - 0x24]
movq qword [ebx + 0xe4], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ebx + 0xec], xmm0
jmp 0x405157
lea ecx, [ebx + 0xe4]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::SetRectEmpty_void_]
mov eax, dword [ebp - 0xd8]
push 0xff
mov edi, dword [eax]
push 0x40024
lea ecx, [ebp - 0x24]
call dword [sym.imp.ouilibx.dll_public:_struct_tagRECT____thiscall_OUI::CORect::operator_struct_tagRECT__void_]
push eax
lea ecx, [ebx + 0x94]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov ecx, dword [ebp - 0xd8]
push eax
push dword [ebp - 0xdc]
call dword [edi + 0x84]
lea ecx, [ebx + 0xa4]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COString::IsEmpty_void_const]
test eax, eax
je 0x4051ca
lea edx, [ebx + 0xa4]
lea ecx, [ebx + 0x9c]
call fcn.00404a60
test eax, eax
jne 0x4051ca
lea eax, [ebx + 0x9c]
push eax
lea ecx, [ebx + 0xa4]
call dword [0x435688]
lea ecx, [ebp - 0xb4]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::constructor_void_]
push 0x4424
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xdc]
lea ecx, [ebx + 0xa4]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
push eax
mov ecx, ebx
call dword [sym.imp.ouilibx.dll_public:_struct_HDC____const___thiscall_OUI::COVWnd::GetDC_void_]
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::COUIManager____cdecl_OUI::COUIManager::GetUIManager_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::COUIManager::CalStringRect_struct_HDC_____wchar_t_const___struct_OUI::IFont___struct_tagRECT___int_]
lea ecx, [ebp - 0xb4]
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
lea ecx, [ebp - 0x34]
mov edi, eax
call dword [sym.imp.ouilibx.dll_public:_int___thiscall_OUI::CORect::Width_void_const]
cmp edi, eax
jle 0x405243
movq xmm0, qword [ebp - 0x34]
movq qword [ebx + 0x104], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [ebx + 0x10c], xmm0
jmp 0x40524f
lea ecx, [ebx + 0x104]
call dword [sym.imp.ouilibx.dll_public:_void___thiscall_OUI::CORect::SetRectEmpty_void_]
mov eax, dword [ebp - 0xd8]
push 0x636363
mov edi, dword [eax]
push 0x4024
lea ecx, [ebp - 0x34]
call dword [sym.imp.ouilibx.dll_public:_struct_tagRECT____thiscall_OUI::CORect::operator_struct_tagRECT__void_]
push eax
lea ecx, [ebx + 0xa4]
call dword [sym.imp.ouilibx.dll_public:_wchar_t_const____thiscall_OUI::COString::operator_wchar_t_const__void_const]
mov ecx, dword [ebp - 0xd8]
push eax
push dword [ebp - 0xdc]
call dword [edi + 0x84]
cmp dword [ebx + 0x17c], 0
jne 0x40529e
mov edi, dword [ebx + 0x54]
mov dword [ebp - 0xe4], edi
jmp 0x4052a8
mov dword [ebp - 0xe4], 3
cmp dword [ebx + 0x170], 0
mov ecx, str.IDB_COMMON_UNCHECK_BOX
mov eax, str.IDB_COMMON_CHECK_BOX
cmove eax, ecx
push eax
call dword [sym.imp.ouilibx.dll_public:_static_class_OUI::ORES_TABLE____cdecl_OUI::ORES_TABLE::GetResTable_void_]
mov ecx, eax
call dword [sym.imp.ouilibx.dll_public:_struct_OUI::IImage____thiscall_OUI::ORES_TABLE::LoadImageW_wchar_t_const__]
mov ecx, eax
cmp esi, ecx
je 0x4052ef
mov edi, esi
mov esi, ecx
mov dword [ebp - 0xec], esi
test ecx, ecx
je 0x4052e5
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
test edi, edi
je 0x4052ef
mov eax, dword [edi]
push edi
call dword [eax + 8]
test esi, esi
je 0x40532a
movq xmm0, qword [ebp - 0xfc]
mov ecx, dword [ebp - 0xd8]
lea edx, [ebx + 0x144]
push 2
push dword [ebp - 0xe4]
movq qword [edx], xmm0
movq xmm0, qword [ebp - 0xf4]
movq qword [edx + 8], xmm0
mov eax, dword [ecx]
push edx
push esi
call dword [eax + 0xbc]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40533b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x40534c
mov eax, dword [esi]
push esi
call dword [eax + 8]
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.0042e0d6
mov esp, ebp
pop ebp
ret 0x18