Function at 0x410600
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50267e
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x548394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0
push 0x2c
mov dword [ebp - 4], 0
call fcn.0049684a
add esp, 4
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x2c
push 0
push esi
call fcn.004d82b0
mov dword [esi], 0xffffffff
add esp, 0xc
mov dword [esi + 4], 0xffffffff
xor eax, eax
mov dword [esi + 0xc], 0
mov ecx, esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 7
mov word [esi + 0x10], ax
mov byte [esi + 0x28], 1
push 0x549f78
mov dword [ebp - 0x1c], esi
mov dword [esi + 0xc], eax
call fcn.004165e0
test al, al
jne 0x410788
push ecx
mov ecx, esi
call fcn.00416550
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
call fcn.00413170
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4106f3
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x4106f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x4106f3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0
test bl, bl
je 0x410781
sub esp, 8
lea ecx, [ebp - 0xc0]
call fcn.00407750
mov edx, str.send_to_main_connect_pipe_failed:
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc0]
call fcn.00405c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00411ba0
lea ecx, [ebp - 0x18]
call fcn.00413170
mov byte [ebp - 4], 4
lea edx, [ebp - 0xc0]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x410776
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x410776
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x410776
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0xc0]
call fcn.00405db0
xor al, al
jmp 0x4108a9
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x410793
mov edi, dword [edi]
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4107b4
mov byte [ebp - 0x14], al
jmp 0x4107c7
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4107c3
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
mov byte [ebp - 0x14], 1
mov ecx, esi
call fcn.00416700
push ecx
mov ecx, esi
call fcn.00416550
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
call fcn.00413170
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov bl, al
mov byte [ebp - 4], 7
or esi, 0xffffffff
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x410821
mov ecx, esi
lock xadd dword [edi + 4], ecx
jne 0x410821
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x410821
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0
test bl, bl
je 0x4108a7
sub esp, 8
lea ecx, [ebp - 0xc0]
call fcn.00407750
mov edx, str.send_ret:
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc0]
call fcn.00405c40
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc0]
call fcn.00411d20
lea ecx, [ebp - 0x24]
call fcn.00413170
mov byte [ebp - 4], 9
lea edx, [ebp - 0xc0]
mov ecx, dword [eax]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 0xa
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x41089c
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x41089c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x41089c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea ecx, [ebp - 0xc0]
call fcn.00405db0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004965ac
mov esp, ebp
pop ebp
ret