Function at 0x420880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4406d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x45d070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
xor esi, esi
lea esp, [esp]
push 0
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x4209bb
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x420982
call ebx
mov ebx, eax
cmp ebx, 0xe7
jne 0x420954
mov ecx, dword [0x46133c]
test cl, 1
jne 0x42092a
or ecx, 1
push 0x442be0
mov dword [0x46133c], ecx
call fcn.0043be9d
add esp, 4
push esi
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
push str.failed_to_open_pipe___s__to_write_message__the_pipe_is_busy__try_again___d__n
push 0x461338
call fcn.0042ae60
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
inc esi
add esp, 0x10
cmp esi, 0xa
jl 0x4208c0
jmp 0x4209c3
mov eax, dword [0x46133c]
test al, 1
jne 0x420972
or eax, 1
push 0x442be0
mov dword [0x46133c], eax
call fcn.0043be9d
add esp, 4
push ebx
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
push str.failed_to_open_pipe___s__to_write_message__error___d_n
jmp 0x420a9f
test esi, esi
jle 0x4209bb
mov eax, dword [0x46133c]
test al, 1
jne 0x4209a4
or eax, 1
push 0x442be0
mov dword [0x46133c], eax
call fcn.0043be9d
add esp, 4
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
push str.Succeed_to_re_open_pipe___s__to_write_message_n
push 0x461338
call fcn.0042ae60
add esp, 0xc
test edi, edi
je 0x420a74
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x420a21
mov eax, dword [0x46133c]
test al, 1
jne 0x4209fb
or eax, 1
push 0x442be0
mov dword [0x46133c], eax
call fcn.0043be9d
add esp, 4
call ebx
push eax
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
push str.failed_to_SetNamedPipeHandleState__Pipe:___s___error:__d_n
push 0x461338
call fcn.0042ae60
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x420aac
cmp dword [ebp + 0x1c], 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 0x18]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x420a69
call ebx
test eax, eax
je 0x420a69
call ebx
push eax
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
push str.Failed_to_write_message_to_pipe___s___error__d_n
call fcn.0041db20
push eax
call fcn.0042ae60
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x420aae
mov eax, dword [0x46133c]
test al, 1
jne 0x420a92
or eax, 1
push 0x442be0
mov dword [0x46133c], eax
call fcn.0043be9d
add esp, 4
call ebx
push eax
push str..pipeGlobalgameboxEEE47B6B_E711_43FF_BEED_E546CE2106C8337_
push str.Open_pipe___s__time_out__d_n
push 0x461338
call fcn.0042ae60
add esp, 0x10
xor bl, bl
cmp dword [ebp + 0x1c], 0x10
jb 0x420ac0
push dword [ebp + 8]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret