Function at 0x61073860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0xd8]
push esi
lea esi, [ebp - 0xdc]
push ebx
sub esp, 0xfc
lea ebx, [ebp - 0xdd]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov eax, 0x94
mov byte [edx + 0x14], 1
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.cygwin1.dll__memset
mov eax, 0x14
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xd8], eax
mov eax, 0x1c
mov dword [ebp - 0xd4], eax
mov eax, dword [edx]
mov dword [ebp - 0xd0], eax
mov edx, dword [edx]
mov dword [ebp - 0xe4], edx
mov esi, esi
mov byte [ebp - 0xdd], 0
xor eax, eax
mov ecx, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x61073a08
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x11c]
mov dword [ebp - 0xcc], eax
movzx eax, byte [ebp - 0xdd]
cmp al, 0x13
je 0x610738f0
jle 0x61073983
cmp al, 0x15
jl 0x61073950
cmp al, 0x16
jle 0x61073991
cmp al, 0x70
je 0x610738f0
lea esi, [esi]
mov dword [esp], 0x6110c854
movsx eax, al
mov edx, str.unknown_value__d_on_proc_pipe
mov dword [esp + 0x10], eax
mov eax, str.DWORD_proc_waiter_void_
mov dword [esp + 8], eax
mov eax, 0x8000
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610738f0
test al, al
je 0x61073a88
jl 0x61073950
cmp al, 0x11
jl 0x61073950
mov eax, dword [0x61109170]
test byte [eax + 5], 4
jne 0x610738f0
mov eax, 0x20
mov dword [ebp - 0xd4], eax
mov eax, dword [0x61148184]
test eax, eax
jne 0x61073ad7
xor ecx, ecx
mov edx, edi
mov eax, 0x61109564
call sym.__Z8sig_sendP6_pinfoR9siginfo_tP7_cygtls_12
cmp byte [ebp - 0xdd], 0
je 0x61073a44
test byte [0x6110c854], 1
je 0x610738f0
mov dword [esp], 0x6110c854
mov eax, 0x6112ae34
mov ecx, 0x800
mov dword [esp + 0xc], eax
mov eax, str.DWORD_proc_waiter_void_
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610738f0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x61073924
mov eax, dword [ebp - 0x2c]
mov edx, str.error_on_read_of_child_wait_pipe__p___E
mov dword [esp + 0xc], edx
mov dword [esp], 0x6110c854
mov dword [esp + 0x10], eax
mov eax, str.DWORD_proc_waiter_void_
mov dword [esp + 8], eax
mov eax, 0x8000
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
test byte [0x6110c854], 1
jne 0x61073af0
mov dword [ebp - 0x20], 0
mov eax, dword fs:[4]
cmp byte [ebp - 0x30], 0
mov eax, dword [eax - 0x2570]
mov dword [eax + 0x1c], 0
je 0x61073a7c
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x61073b4a
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x2c], 0
sub esp, 4
lea eax, [ebp - 0x38]
call method.pinfo.maybe_set_exit_code_from_windows__
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 8]
test dl, dl
jne 0x61073b26
mov eax, 0x1c
mov dword [ebp - 0xd4], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [0x61148184]
mov dword [ecx + 4], 0x80000000
test eax, eax
je 0x610739b8
xor edx, edx
mov eax, 3
call sym.__Z12proc_subprocmm_8
test byte [0x6110c854], 1
je 0x61073a51
mov eax, dword [ebp - 0xe4]
mov ecx, str.exiting_wait_thread_for_pid__d
mov edx, str.DWORD_proc_waiter_void_
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
mov eax, 0x800
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61073a51
mov eax, edx
and eax, 0x7f
je 0x61073b40
cmp eax, 0x7e
ja 0x61073b40
test dl, 0x80
mov eax, 0x1e
jne 0x61073ab4
mov eax, 0x1d
jmp 0x61073ab4
lea eax, [ebp - 0x38]
mov dword [esp], eax
call method.pinfo.release__
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4