Function at 0x4a2cbb
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x50dd1b
call fcn.00484660
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_5
cmp dword [edi + 0xa4], ebx
mov byte [ebp - 4], 2
jbe 0x4a341f
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4a2d12
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x3c], ebx
mov esi, dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQDataArray_struct_IQQDataArray___]
lea eax, [ebp - 0x3c]
push eax
call esi
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
mov dword [ebp - 0x78], ebx
mov dword [esp], 0x51a314
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_5
push dword [edi + 0xa4]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push 0x57089c
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp eax, ebx
je 0x4a2d6e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
call esi
lea ecx, [ebp - 0x40]
mov dword [esp], str.smf4.0
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
lea eax, [edi + 0xa8]
push eax
lea eax, [ebp - 0x64]
push eax
call sub.MFC42.DLL_operator_2
push 0x570c4c
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 7
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
push ebx
push 0x8000
push dword [ebp - 0x28]
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CFile::Open
cmp eax, ebx
je 0x4a2e49
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
lea ecx, [ebp - 0x60]
push esi
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CFile::Read
test eax, eax
je 0x4a2e3e
cmp esi, ebx
je 0x4a2e37
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x60]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xbc]
mov dword [ebp - 0x78], 1
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CFile::Close
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 0xf
or dword [ebp - 0x48], 0xffffffff
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x58], ebx
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [edi + 0x38]
mov byte [ebp - 4], 0x10
cmp eax, ebx
mov dword [ebp - 0x6c], ebx
je 0x4a2e88
mov ecx, dword [eax]
lea edx, [ebp - 0x6c]
push edx
push eax
call dword [ecx + 0x7c]
cmp dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], ebx
jle 0x4a33ab
mov edi, dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
mov esi, 0x52b9f0
cmp dword [ebp - 0x4c], 0x12c
jge 0x4a33ab
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x38], ebx
je 0x4a2eda
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4a2ec4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [eax + 0x38]
push dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x4a318a
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push 0x52b9b4
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x70]
push edx
push 0x52b9cc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp dword [ebp - 0x48], 0x7530
jb 0x4a318a
cmp dword [ebp - 0x48], 0x9c3f
ja 0x4a318a
cmp dword [ebp - 0x70], 2
jne 0x4a318a
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x58]
push edx
push 0x52b9d8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
cmp dword [ebp - 0x58], ebx
jle 0x4a318a
cmp dword [ebp - 0x58], 0x64
jge 0x4a318a
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_5
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x11
push eax
push 0x52b9c0
push dword [ebp - 0x10]
call edi
pop ecx
lea eax, [ebp - 0x34]
pop ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call fcn.004a16ab
cmp eax, ebx
je 0x4a317e
mov eax, dword [ebp + 8]
or dword [ebp - 0x7c], 0xffffffff
lea edx, [ebp - 0x7c]
mov ecx, dword [eax]
push edx
push 0x52ba0c
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x7c]
push 0x51a314
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x90], eax
call sub.MFC42.DLL_CString::CString_3
push 0x51a314
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x14
push eax
push esi
push dword [ebp - 0x10]
call edi
lea eax, [ebp - 0x38]
push eax
push 0x52ba00
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp - 0x20]
add esp, 0x18
cmp dword [eax - 8], ebx
je 0x4a3041
mov eax, dword [ebp - 0x38]
cmp dword [eax - 8], ebx
je 0x4a3041
push ecx
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 0x15
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x90]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004a1095
mov ecx, dword [ebp - 0x5c]
call fcn.004a10a5
cmp eax, ebx
je 0x4a3166
or dword [ebp - 0x1c], 0xffffffff
or dword [ebp - 0x64], 0xffffffff
or dword [ebp - 0x50], 0xffffffff
push 0x51a314
lea ecx, [ebp - 0x44]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x17
cmp eax, ebx
mov dword [ebp - 0x40], ebx
je 0x4a3072
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push eax
call dword [ecx + 0x7c]
cmp dword [ebp - 0x78], ebx
je 0x4a31c1
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], ebx
jle 0x4a31c1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4a3097
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x30]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4a311f
cmp dword [ebp - 0x30], 0x12c
jge 0x4a31c1
mov ecx, dword [eax]
lea edx, [ebp - 0x64]
push edx
push 0x52b9b4
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x64]
jne 0x4a311f
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x29]
push edx
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
cmp byte [ebp - 0x29], bl
je 0x4a30f5
lea eax, [ebp - 0x44]
push eax
push esi
push dword [ebp - 0x14]
call edi
add esp, 0xc
push 0x51a314
push dword [ebp - 0x44]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4a3133
push dword [ebp - 0x20]
push dword [ebp - 0x44]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4a3133
or dword [ebp - 0x1c], 0xffffffff
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x40]
jl 0x4a3087
mov eax, dword [ebp - 0x1c]
jmp 0x4a3150
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x50]
push edx
push 0x52ba88
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x58]
jae 0x4a315a
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x4a31c1
cmp eax, 0xfffffffe
jne 0x4a319e
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x6c]
jge 0x4a33ab
jmp 0x4a2e9f
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x50]
mov ecx, dword [eax]
push 0x52ba88
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
jmp 0x4a3216
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4a31d1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQData_struct_IQQData___]
mov eax, dword [ebp - 0x24]
pop ecx
push dword [ebp - 0x48]
mov ecx, dword [eax]
push 0x52b9b4
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x24]
push 1
push 0x52ba88
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
push eax
mov dword [ecx], eax
mov ecx, dword [eax]
call dword [ecx + 4]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp + 8]
mov dword [ebp + 8], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xb8]
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push dword [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x1c]
mov byte [ebp - 4], 0x18
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push dword [ebp - 0x28]
mov edi, eax
call esi
push ebx
push 0x9002
push dword [ebp - 0x28]
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4a32f2
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push dword [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CFile::Write
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push ebx
lea ecx, [ebp - 0x18]
call fcn.004c0d1c
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CFile::Close
push edi
push dword [ebp - 0x28]
call esi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x4a3321
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x4a3332
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x4a3343
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4a3378
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.0048433a
mov eax, dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4a33a3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop eax
jmp 0x4a344c
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x4a33c8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x4a33d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x4a33ea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4a341f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.0048433a
mov eax, dword [ebp - 0x3c]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4a344a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8