Function at 0x4caab0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce029
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push ebx
push esi
push edi
mov eax, dword [0x50e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp byte [esi + 0x1060], bl
je 0x4cab91
mov dword [ebp - 4], edi
mov byte [esi + 0x1060], bl
cmp dword [ebp + 8], ebx
je 0x4cac36
cmp dword [ebp + 0xc], ebx
je 0x4cac36
cmp dword [esi + 0x107c], ebx
jne 0x4cab4e
push 4
push 0x17c
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xc0]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_
add eax, 8
push str.Check_failed:__output_queue_.empty__.
mov ebx, 0x10
push eax
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], ebx
call fcn.00405c70
add esp, 8
mov dword [ebp - 4], edi
test bl, 0x10
je 0x4cab64
lea ecx, [ebp - 0xc0]
and ebx, 0xffffffef
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
lea ecx, [esi + 0x106c]
call fcn.004c9920
mov eax, dword [eax]
lea ecx, [esi + 0x106c]
mov dword [ebp + 8], eax
call fcn.004c9640
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4cab8e
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
or edi, 0xffffffff
cmp dword [esi + 0x107c], 0
je 0x4cad48
cmp dword [esi + 0x1064], edi
je 0x4cac9a
lea ecx, [esi + 0x106c]
call fcn.004c9920
mov edi, dword [eax]
mov dword [ebp - 4], 0xffffffff
test bl, 0x20
je 0x4cabd1
lea ecx, [ebp - 0xc0]
and ebx, 0xffffffdf
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
add eax, dword [ecx]
lea edx, [esi + 0x1048]
push edx
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [esi + 0x1064]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cad27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
jne 0x4cacb0
mov byte [esi + 0x1060], 1
mov dword [ebp - 4], 0xffffffff
test bl, 0x40
je 0x4cad48
lea ecx, [ebp - 0xc0]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
jmp 0x4cad48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call sub.brbase.dll_int___cdecl_logging::GetMinLogLevel_void_
cmp eax, 2
jg 0x4cac87
push 2
push 0x178
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xc0]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_
mov ebx, 8
push esi
add eax, ebx
push str.pipe_error:
push eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x10], ebx
call fcn.00405c70
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 4], edi
test bl, 8
je 0x4cac9a
lea ecx, [ebp - 0xc0]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call sub.brbase.dll_int___cdecl_logging::GetMinLogLevel_void_
cmp eax, 2
jg 0x4cacfb
push 2
push 0x19a
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xc0]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_
push edi
add eax, 8
push str.pipe_error:
or ebx, 0x80
push eax
mov dword [ebp - 4], 7
mov dword [ebp - 0x10], ebx
call fcn.00405c70
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
mov dword [ebp - 4], 0xffffffff
test bl, bl
jns 0x4cac9a
lea ecx, [ebp - 0xc0]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
test ebx, 0x100
je 0x4cad41
lea ecx, [ebp - 0x170]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
mov byte [esi + 0x1060], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8