Function at 0x690b08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 0x2c], 0
setne al
movzx eax, al
test eax, eax
jne 0x690b6b
mov dword [esp], str.src_lib_process_process_win32.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.process
mov dword [esp + 8], 0x78c9a4
mov dword [esp + 4], 0x154
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
cmp dword [ebp - 0x30], 0
setne al
movzx eax, al
test eax, eax
jne 0x690bb2
mov dword [esp], str.src_lib_process_process_win32.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.buffer
mov dword [esp + 8], 0x78c9a4
mov dword [esp + 4], 0x155
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0068f4fe
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00693655
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x420]
test al, al
je 0x690bf4
mov eax, 0
jmp 0x690df1
cmp dword [ebp - 0x14], 0
jne 0x690c04
mov eax, 0
jmp 0x690df1
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 4]
movzx eax, al
test eax, eax
je 0x690c55
mov dword [esp], str.src_lib_process_process_win32.c
call fcn.006c14d2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], str.__win32_process__stdin_handle.reached_eof_
mov dword [esp + 8], 0x78c9a4
mov dword [esp + 4], 0x165
mov dword [esp], eax
call fcn.006c12a3
mov eax, 1
jmp 0x690c5a
mov eax, 0
test al, al
je 0x690c68
mov eax, 0
jmp 0x690df1
mov eax, 0x400
cmp dword [ebp - 0x14], 0x400
cmovbe eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00694040
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x40c]
mov eax, dword [ebp - 0x20]
lea ecx, [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esp + 0x10], 0x691c47
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFileEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x690d95
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x26
je 0x690d03
cmp dword [ebp - 0x18], 0x6d
jne 0x690d49
call fcn.006903ac
test al, al
je 0x690d86
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.006c1578
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.WriteFileEx___returned_EOF_from_pipe:__s
mov dword [esp + 0xc], str.process_win32_write
mov dword [esp + 4], 0x4000000
mov dword [esp + 8], 0
mov dword [esp], 7
call fcn.006bf072
jmp 0x690d86
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.006c1578
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.WriteFileEx___failed:__s
mov dword [esp + 0xc], str.process_win32_write
mov dword [esp + 4], 0x4000000
mov dword [esp + 8], 0
mov dword [esp], 4
call fcn.006bf072
jmp 0x690d87
nop
mov eax, dword [ebp - 0x20]
mov byte [eax + 4], 1
mov eax, 0
jmp 0x690df1
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x690dee
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.006c1578
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.WriteFileEx___failed_after_returning_success:__s
mov dword [esp + 0xc], str.process_win32_write
mov dword [esp + 4], 0x4000000
mov dword [esp + 8], 0
mov dword [esp], 4
call fcn.006bf072
mov eax, dword [ebp - 0x20]
mov byte [eax + 4], 1
mov eax, 0
jmp 0x690df1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x690e01
call sub.libssp_0.dll___stack_chk_fail
leave
ret