Function at 0x4b1be0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d12d7
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x671330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
push 4
lea ecx, [ebp - 0x14]
call fcn.004029d0
mov ecx, dword [ebp + 8]
call fcn.0040bfe0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040e050
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00436f30
lea ecx, [ebp - 0x14]
call fcn.0040e030
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
call fcn.00541000
add esp, 4
test eax, eax
jne 0x4b1d77
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.005405b0
add esp, 4
test eax, eax
jne 0x4b1d77
push 0xfa0
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov ecx, eax
call fcn.0040a130
movzx edx, al
test edx, edx
jne 0x4b1c89
jmp 0x4b1d5c
push 0x5eb2f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x416260
push 0x5eb2f8
mov eax, dword [ebp - 0x38]
push eax
push 0x5eb300
push 0x5eb324
push 0x5eb32c
push 0x5eb344
push 0x5eb348
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
push eax
call fcn.004048b0
add esp, 4
mov ecx, eax
call fcn.00402ad0
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
call fcn.00402a30
mov ecx, eax
call fcn.00402d20
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
push eax
call fcn.0040a4b0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.00402a50
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c680
mov al, byte [ebp - 0x2d]
jmp 0x4b2191
mov ecx, dword [ebp + 8]
call fcn.0040bfe0
push eax
call fcn.005416c0
add esp, 4
test eax, eax
je 0x4b1e98
mov ecx, dword [ebp + 8]
call fcn.0040bfe0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b1e98
push 0xfa0
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov ecx, eax
call fcn.0040a130
movzx eax, al
test eax, eax
jne 0x4b1dc5
jmp 0x4b1e98
push 0x5eb370
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x416260
push 0x5eb374
mov ecx, dword [ebp - 0x38]
push ecx
push str.Failed_to_delete
push 0x5eb3d0
push 0x5eb3dc
push 0x5eb3fc
push 0x5eb400
lea edx, [ebp - 0x1b4]
push edx
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
push eax
call fcn.004048b0
add esp, 4
mov ecx, eax
call fcn.00402ad0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
call fcn.00402a30
mov ecx, eax
call fcn.00402d20
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
push eax
call fcn.0040a4b0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1b4]
call fcn.00402a50
lea ecx, [ebp - 0x2c]
call fcn.00409640
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040bfe0
push eax
mov edx, dword [ebp - 0x4c]
add edx, 0x114
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004e5030
add esp, 0x14
test eax, eax
jne 0x4b1fa8
push 0xfa0
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov ecx, eax
call fcn.0040a130
movzx ecx, al
test ecx, ecx
jne 0x4b1eef
jmp 0x4b1f81
lea ecx, [ebp - 0x2c]
call fcn.0040bfe0
push eax
push 0x5eb41c
push str.CEventLogger::CreateLog
push 0x5eb444
push 0x5eb46c
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
push eax
call fcn.004048b0
add esp, 4
mov ecx, eax
call fcn.00402ad0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x54]
call fcn.00402a30
mov ecx, eax
call fcn.00402d20
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x25c]
call fcn.00402a50
mov byte [ebp - 0x2e], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040a7f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c680
mov al, byte [ebp - 0x2e]
jmp 0x4b2191
mov ecx, dword [ebp + 8]
call fcn.0040bfe0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4b20b4
mov ecx, dword [ebp - 0x34]
and ecx, 2
jne 0x4b20af
mov edx, dword [ebp - 0x34]
or edx, 2
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040bfe0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4b20af
push 0xfa0
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov ecx, eax
call fcn.0040a130
movzx ecx, al
test ecx, ecx
jne 0x4b2012
jmp 0x4b20af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileAttributes_failed_0x
push 0x5eb514
push 0x5e8e00
push 0x5e8e18
push 0x5e8e1c
lea edx, [ebp - 0x304]
push edx
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
push eax
call fcn.004048b0
add esp, 4
mov ecx, eax
call fcn.00402ad0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c]
call fcn.00402a30
mov ecx, eax
call fcn.00402d20
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x304]
call fcn.00402a50
jmp 0x4b216f
push 0xfa0
call dword [sym.imp.Dbglog.dll_struct_boost::logging::level::holder_no_ts____cdecl_g_l_filter_void_]
mov ecx, eax
call fcn.0040a130
movzx ecx, al
test ecx, ecx
jne 0x4b20d2
jmp 0x4b216f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileAttributes_failed_0x
push 0x5e8ecc
push 0x5e8ed8
push 0x5e8ef8
push 0x5e8f08
lea edx, [ebp - 0x3ac]
push edx
call dword [sym.imp.Dbglog.dll_struct_boost::logging::logger_holder_struct_boost::logging::logger_format_write_struct_boost::logging::default___struct_boost::logging::default___struct_boost::logging::writer::threading::ts_write__struct_boost::logging::default___struct_boost::logging::lock_resource_finder::single_thread______cdecl_g_l_void_]
push eax
call fcn.004048b0
add esp, 4
mov ecx, eax
call fcn.00402ad0
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x64]
call fcn.00402a30
mov ecx, eax
call fcn.00402d20
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.00409d00
add esp, 8
push eax
call fcn.0040a4b0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3ac]
call fcn.00402a50
mov byte [ebp - 0x2f], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0040a7f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c680
mov al, byte [ebp - 0x2f]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544286
mov esp, ebp
pop ebp
ret 8