Function at 0x691e6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 0x1c], 0
setne al
movzx eax, al
test eax, eax
jne 0x691ed7
mov dword [esp], str.src_lib_process_process_win32.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.handle
mov dword [esp + 8], 0x78cc3c
mov dword [esp + 4], 0x36d
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
cmp dword [ebp - 0x20], 0
setne al
movzx eax, al
test eax, eax
jne 0x691f1e
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], 0x78cc3c
mov dword [esp + 4], 0x36e
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
cmp dword [ebp - 0x24], 0
setne al
movzx eax, al
test eax, eax
jne 0x691f65
mov dword [esp], str.src_lib_process_process_win32.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.callback
mov dword [esp + 8], 0x78cc3c
mov dword [esp + 4], 0x36f
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 0x420]
movzx eax, al
test eax, eax
je 0x691fce
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.__handle__busy_
mov dword [esp + 8], 0x78cc3c
mov dword [esp + 4], 0x376
mov dword [esp], eax
call fcn.006c12a3
mov eax, 1
jmp 0x691fd3
mov eax, 0
test al, al
je 0x691fe1
mov eax, 0
jmp 0x6921ff
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 4]
movzx eax, al
test eax, eax
je 0x692032
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.__handle__reached_eof_
mov dword [esp + 8], 0x78cc3c
mov dword [esp + 4], 0x37b
mov dword [esp], eax
call fcn.006c12a3
mov eax, 1
jmp 0x692037
mov eax, 0
test al, al
je 0x692045
mov eax, 0
jmp 0x6921ff
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x69209f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x1c]
add edx, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00693aae
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xc
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
sub esp, 4
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + 0x40c]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0xc]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x400
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFileEx]
call eax
sub esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x69219b
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x26
je 0x69210b
cmp dword [ebp - 0x10], 0x6d
jne 0x692151
call fcn.006903ac
test al, al
je 0x69218e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.006c1578
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.ReadFileEx___returned_EOF_from_pipe:__s
mov dword [esp + 0xc], str.process_win32_read_from_handle
mov dword [esp + 4], 0x4000000
mov dword [esp + 8], 0
mov dword [esp], 7
call fcn.006bf072
jmp 0x69218e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.006c1578
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.ReadFileEx___failed:__s
mov dword [esp + 0xc], str.process_win32_read_from_handle
mov dword [esp + 4], 0x4000000
mov dword [esp + 8], 0
mov dword [esp], 4
call fcn.006bf072
jmp 0x69218f
nop
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x14]
jmp 0x6921ff
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6921f2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.006c1578
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], str.ReadFileEx___failed_after_returning_success:__s
mov dword [esp + 0xc], str.process_win32_read_from_handle
mov dword [esp + 4], 0x4000000
mov dword [esp + 8], 0
mov dword [esp], 4
call fcn.006bf072
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], 1
mov eax, dword [ebp - 0x14]
jmp 0x6921ff
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0x420], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x69220f
call sub.libssp_0.dll___stack_chk_fail
mov ebx, dword [ebp - 4]
leave
ret