Function at 0x40c7f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ab6c
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push esi
push edi
mov eax, dword [0x6dd8d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0
push edi
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x40cb4d
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x6ee264], 1
jne 0x40c8c7
push 1
push 0x40
push 8
push 0x5aa29c
lea ecx, [ebp - 0xc4]
call fcn.0040c520
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push 0x5aa168
push eax
call fcn.0040afa0
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.0040afa0
add esp, 0x10
lea ecx, [ebp - 0xc0]
call fcn.0040a310
test eax, eax
jne 0x40c8af
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c630
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x6ee274], 1
mov esi, dword [sym.imp.MSVCR120.dll__time64]
jne 0x40c9b7
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
add esp, 8
lea ecx, [ebp - 0xc4]
mov esi, eax
push 1
push 0x40
push 8
push 0x5aa178
call fcn.0040c520
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 1
push 0x5aa17c
push eax
call fcn.0040afa0
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0040afa0
lea eax, [ebp - 0xc4]
push 0x5aa18c
push eax
call fcn.0040afa0
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.0040afa0
lea eax, [ebp - 0xc4]
push 0x5aa19c
push eax
call fcn.0040afa0
add esp, 0x2c
lea ecx, [ebp - 0xc0]
call fcn.0040a310
test eax, eax
jne 0x40c98c
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0x5aa1c4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c630
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov esi, dword [sym.imp.MSVCR120.dll__time64]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je 0x40cb4d
cmp dword [0x6ee264], 1
jne 0x40ca6e
push 1
push 0x40
push 8
push 0x5aa1c8
lea ecx, [ebp - 0xc4]
call fcn.0040c520
push 0x5aa1dc
push edi
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 2
push str._nCN_Close:
push eax
call fcn.0040afa0
add esp, 8
push eax
call fcn.0040afa0
add esp, 8
push eax
call fcn.0040afa0
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.0040a310
test eax, eax
jne 0x40ca56
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c630
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x6ee274], 1
jne 0x40cb48
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
add esp, 8
lea ecx, [ebp - 0x16c]
mov esi, eax
push 1
push 0x40
push 8
push 0x5aa20c
call fcn.0040c520
lea eax, [ebp - 0x16c]
mov dword [ebp - 4], 3
push 0x5aa210
push eax
call fcn.0040afa0
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0040afa0
add esp, 0x14
lea eax, [ebp - 0x16c]
push 0x5aa220
push edi
push str.CN_Close:
push eax
call fcn.0040afa0
add esp, 8
push eax
call fcn.0040afa0
add esp, 8
push eax
call fcn.0040afa0
lea eax, [ebp - 0x16c]
push 0x5aa250
push eax
call fcn.0040afa0
add esp, 0x10
lea ecx, [ebp - 0x168]
call fcn.0040a310
test eax, eax
jne 0x40cb3b
push eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x16c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0x5aa278
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.0040c6f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret