Function at 0x45d6e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::destructor_void_]
mov dword [ebp - 4], ebx
cmp byte [esi + 0x107c], bl
je 0x45d793
mov byte [esi + 0x107c], bl
cmp dword [ebp + 8], ebx
je 0x45d7ea
cmp dword [ebp + 0xc], ebx
je 0x45d7ea
cmp dword [esi + 0x10ac], ebx
jne 0x45d749
push 0x10
pop ebx
push str._output_queue_.empty__
push 0x1df
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xb4]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__char_const__]
test bl, 0x10
je 0x45d759
lea ecx, [ebp - 0xb4]
and ebx, 0xffffffef
call edi
lea ecx, [esi + 0x109c]
call fcn.0045dcaa
mov ecx, dword [eax]
lea eax, [esi + 0x109c]
sub dword [eax + 0x10], 1
mov dword [ebp + 8], ecx
jne 0x45d77b
and dword [eax + 0xc], 0
jmp 0x45d77e
inc dword [eax + 0xc]
test ecx, ecx
je 0x45d793
call fcn.0045e955
push 0xc
push dword [ebp + 8]
call fcn.004609ab
pop ecx
pop ecx
cmp dword [esi + 0x10ac], 0
je 0x45d928
push dword [esi + 0x1080]
call fcn.0043d183
pop ecx
test al, al
je 0x45d843
lea ecx, [esi + 0x109c]
call fcn.0045dcaa
mov eax, dword [eax]
mov dword [ebp + 8], eax
test bl, 0x20
je 0x45d7d7
lea ecx, [ebp - 0xb4]
and ebx, 0xffffffdf
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x45d84a
mov eax, dword [ecx + 4]
mov edx, dword [eax]
add edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
jmp 0x45d84d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov esi, eax
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
pop ecx
test al, al
je 0x45d832
push 8
pop ebx
push 2
push 0x1db
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xb4]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_]
push esi
add eax, ebx
push str.pipe_error:
push eax
call fcn.0040225e
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.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_]
test bl, 8
je 0x45d843
lea ecx, [ebp - 0xb4]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::destructor_void_]
xor al, al
jmp 0x45d92a
mov edx, dword [eax + 8]
test ecx, ecx
je 0x45d856
mov ecx, dword [ecx + 4]
jmp 0x45d859
mov ecx, dword [eax + 4]
lea eax, [esi + 0x1064]
push eax
push 0
push edx
push ecx
push dword [esi + 0x1080]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45d909
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
cmp eax, 0x3e5
jne 0x45d8ae
mov eax, dword [ebp + 8]
mov byte [esi + 0x107c], 1
cmp dword [eax], 0
je 0x45d928
test bl, 0x40
je 0x45d928
lea ecx, [ebp - 0xb4]
call edi
jmp 0x45d928
push 2
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
pop ecx
test al, al
je 0x45d8f4
push 2
push 0x200
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xb4]
or ebx, 0x80
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_]
push dword [ebp + 0xc]
add eax, 8
push str.pipe_error:
push eax
call fcn.0040225e
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.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_]
test bl, bl
jns 0x45d843
lea ecx, [ebp - 0xb4]
call edi
jmp 0x45d843
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x45d921
test ebx, 0x100
je 0x45d921
lea ecx, [ebp - 0xb4]
call edi
mov byte [esi + 0x107c], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8