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

Disassembly:
mov eax, 0x50db08
call fcn.00484660
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x34], ebx
je 0x4a1cfa
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_5
cmp dword [edi + 0xa4], ebx
mov byte [ebp - 4], 2
jbe 0x4a1cd2
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4a18d3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQDataArray_struct_IQQDataArray___]
pop ecx
mov dword [ebp - 0x18], ebx
mov esi, 0x51a314
lea ecx, [ebp - 0x38]
push esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_5
push dword [edi + 0xa4]
lea eax, [ebp - 0x34]
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 0x4a192d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQDataArray_struct_IQQDataArray___]
lea ecx, [ebp - 0x4c]
mov dword [esp], str.one4.0
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 6
push eax
lea eax, [edi + 0xa8]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_operator_2
push 0x570c4c
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 7
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MFC42.DLL_operator_2
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
push ebx
push 0x8000
push dword [ebp - 0x24]
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFile::Open
cmp eax, ebx
je 0x4a1a04
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFile::GetLength
push eax
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x4c], eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFile::Read
test eax, eax
je 0x4a19fc
cmp dword [ebp - 0x4c], ebx
je 0x4a19f5
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xbc]
mov dword [ebp - 0x54], 1
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFile::Close
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0xe], bl
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [edi + 0x34]
lea edx, [ebp - 0xf]
push edx
push 0x52ba54
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0x10
call dword [ecx + 0x70]
cmp byte [ebp - 0xf], 5
jne 0x4a1a55
mov eax, dword [edi + 0x34]
lea edx, [ebp - 0x58]
push edx
push 0x52ba54
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov eax, dword [ebp + 8]
or dword [ebp - 0x50], 0xffffffff
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
push edx
push 0x52ba0c
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x50]
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x5c], eax
call sub.MFC42.DLL_CString::CString_3
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [edi + 0x34]
lea edx, [ebp - 0xd]
push edx
push 0x52ba64
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0x12
call dword [ecx + 0x70]
cmp byte [ebp - 0xd], bl
je 0x4a1acb
mov eax, dword [edi + 0x34]
lea ecx, [ebp - 0x20]
push ecx
push 0x52ba64
push eax
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
mov eax, dword [edi + 0x34]
lea ecx, [ebp - 0x2c]
push ecx
push 0x52ba78
push eax
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
add esp, 0x18
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
je 0x4a1c57
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 8], ebx
je 0x4a1c57
push ecx
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call sub.MFC42.DLL_CString::CString_4
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x64], esp
push eax
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString_4
push ecx
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x5c]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.004a1095
mov ecx, edi
call fcn.004a10a5
cmp eax, ebx
je 0x4a1c57
or dword [ebp - 0x30], 0xffffffff
or dword [ebp - 0x3c], 0xffffffff
push esi
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x4c], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x7c]
cmp dword [ebp - 0x54], ebx
je 0x4a1d4a
cmp dword [ebp - 0x4c], ebx
mov dword [ebp + 8], ebx
jle 0x4a1d4a
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4a1b71
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 + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4a1be7
cmp dword [ebp + 8], 0x12c
jge 0x4a1d4a
mov ecx, dword [eax]
lea edx, [ebp - 0xd]
push edx
push 0x52b9f0
push eax
call dword [ecx + 0x70]
cmp byte [ebp - 0xd], bl
je 0x4a1bc1
lea eax, [ebp - 0x40]
push eax
push 0x52b9f0
push dword [ebp - 0x14]
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
add esp, 0xc
push esi
push dword [ebp - 0x40]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4a1bfb
push dword [ebp - 0x20]
push dword [ebp - 0x40]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4a1bfb
or dword [ebp - 0x30], 0xffffffff
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x4c]
jl 0x4a1b61
jmp 0x4a1d44
lea eax, [ebp - 0x60]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x54]
mov dword [ebp - 0x54], ebx
push edx
mov ecx, dword [eax]
push 0x52b9e4
push eax
call dword [ecx + 0x38]
push ecx
mov ecx, dword [ebp - 0x54]
mov eax, esp
mov dword [ebp - 0x30], esp
mov dword [eax], ecx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x60]
call fcn.004766be
mov eax, dword [ebp - 0x64]
mov ecx, 0xe10
cdq
idiv ecx
push eax
call sub.MSVCRT.dll_abs
cmp eax, 0xc
pop ecx
jge 0x4a1d0d
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x4a1c8c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x4a1c9d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
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 0x4a1cd2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.0048433a
mov eax, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4a1cfa
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
cmp dword [ebp - 0x58], ebx
jne 0x4a1d2c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push edx
push 0x52ba88
mov ecx, dword [eax]
push eax
mov dword [ebp - 0x30], ebx
call dword [ecx + 0x34]
jmp 0x4a1db4
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x3c]
push edx
push 0x52ba88
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4a1dae
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4a1d5a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_CreateQQData_struct_IQQData___]
mov eax, dword [ebp - 0x1c]
pop ecx
push 1
push 0x52ba88
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push 0x52b9f0
push eax
call dword [ecx + 0x20]
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [ebp - 0x1c]
push dword [ebp + 8]
mov ecx, dword [eax]
push 0x52b9e4
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
jmp 0x4a1df9
cmp dword [ebp - 0x30], 0xfffffffe
je 0x4a1e0b
inc dword [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x3c]
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 0x52b9f0
push eax
call dword [ecx + 0x20]
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [ebp - 0x14]
push dword [ebp + 8]
mov ecx, dword [eax]
push 0x52b9e4
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x30], 0xfffffffe
je 0x4a1e0b
mov eax, dword [ebp + 0xc]
mov edi, dword [edi + 0x34]
push edi
mov dword [eax], edi
mov eax, dword [edi]
call dword [eax + 4]
mov byte [ebp - 0xe], 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0xe], bl
je 0x4a1c57
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x54]
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 - 0x54]
call sub.MFC42.DLL_CString::CString_1
push dword [ebp - 0x54]
mov byte [ebp - 4], 0x16
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, 0x80
push edi
push dword [ebp - 0x24]
call esi
push ebx
push 0x9002
push dword [ebp - 0x24]
lea ecx, [ebp - 0x78]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4a1eb4
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push dword [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x78]
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 - 0x78]
call sub.MFC42.DLL_CFile::Close
push edi
push dword [ebp - 0x24]
call esi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x4a1efb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xd
cmp eax, ebx
je 0x4a1f0c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
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 0x4a1f41
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.0048433a
mov eax, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4a1f69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop eax
jmp 0x4a1cfc