Function at 0x486910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55a0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x5ec3c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x28], edi
test eax, eax
je 0x486c4f
cmp eax, 0xffffffff
je 0x486c4f
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 1
push esi
mov bl, 1
call fcn.004f3843
add esp, 4
test eax, eax
jne 0x486d24
mov eax, dword [edi + 4]
push esi
cmp eax, dword [edi + 8]
jne 0x48698f
call fcn.004f3868
add esp, 4
mov al, bl
jmp 0x486d08
call fcn.004f3868
mov eax, dword [edi + 0x6c]
add esp, 4
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4869ac
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 4]
lea eax, [edi + 0x5c]
mov ecx, dword [edi + 8]
push eax
lea eax, [ebp - 0x18]
sub ecx, edx
push eax
push ecx
push edx
push dword [edi + 0x4c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x486c48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, 0x3e5
je 0x486c48
sub esp, 8
mov eax, esp
push ecx
push 0x104
mov ecx, edi
mov dword [eax], str.base_wrt_impl
mov dword [eax + 4], 0xd
call fcn.0047a4e0
call fcn.0044f060
push 1
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], str.PipeConnectionBase.cpp
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x2c], 0x105
call fcn.0041a580
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0xd8]
call fcn.004801f0
mov edx, str._Write_failed_with_error
lea ecx, [ebp - 0xd8]
call fcn.0041a5e0
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xd8]
call fcn.004301e0
lea ecx, [ebp - 0x80]
call fcn.0044dd10
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x80], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
mov byte [ebp - 4], 1
push esi
call fcn.004f3843
add esp, 4
test eax, eax
jne 0x486d2a
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x486aa4
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0x14]
je 0x486aaf
mov dword [edi + 0x14], eax
push esi
call fcn.004f3868
add esp, 4
xor bl, bl
mov al, bl
jmp 0x486d08
mov al, bl
jmp 0x486d08
sub esp, 8
mov eax, esp
push 0
push 0xe0
mov dword [eax], 0x5d458c
mov dword [eax + 4], 0xe
call fcn.0047a4e0
call fcn.0044f060
push 1
lea ecx, [ebp - 0xd8]
push ecx
mov ecx, eax
call fcn.0044f5c0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], str.PipeConnectionBase.cpp
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x20], 0xe1
call fcn.0041a580
mov edx, str.Pipe_handle_is_invalid
lea ecx, [ebp - 0xd8]
call fcn.0041a5e0
lea ecx, [ebp - 0x80]
call fcn.0044dd10
lea eax, [ebp - 0x80]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x80], vtable.std::ios_base.0
call fcn.004f317c
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 0x1c]
push esi
call fcn.004f3843
add esp, 4
test eax, eax
jne 0x486d3c
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x486cf2
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
cmp eax, dword [edi + 0x14]
je 0x486cfd
mov dword [edi + 0x14], eax
push esi
call fcn.004f3868
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050a47b
mov esp, ebp
pop ebp
ret
push eax
call fcn.004f3949
push eax
call fcn.004f3949
push eax
call fcn.004f3949
push eax
call fcn.004f3949
push eax
call fcn.004f3949
int3