Function at 0x61099580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
sub esp, 0xec
xor ebx, ebx
call sub.KERNEL32.dll_GetCurrentThread
mov dword [esp], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_SetThreadPriority
sub esp, 8
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp], 0x61107420
call sub.KERNEL32.dll_CreateEventA
mov dword [0x61107528], eax
mov eax, dword [0x61107534]
sub esp, 0x10
mov dword [esp], eax
call sub.KERNEL32.dll_SetEvent
mov eax, dword fs:[4]
sub esp, 4
sub eax, 0x319c
mov dword [0x61107520], eax
mov dword [esp], eax
call method._cygtls.init_threadlist_exceptions__
test byte [0x6110a820], 1
jne 0x61099972
mov edx, 0xffffffd8
mov ebx, 0xffffffd8
lea edi, [ebp - 0xc8]
mov dword [ebp - 0xc8], edx
lea esi, [esi]
lea edi, [edi]
cmp ebx, 0xffffffd8
je 0x610996b5
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xcc]
mov dword [esp + 0xc], eax
mov eax, 0xa4
mov dword [esp + 8], eax
mov eax, dword [0x61108bd8]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x61099771
mov eax, dword [ebp - 0xcc]
cmp eax, 0xa4
je 0x610996d3
mov dword [esp + 0x10], eax
mov ebx, str.short_read_from_signal_pipe:__d____d
mov ecx, str.DWORD_wait_sig_void_
mov dword [esp + 0xc], ebx
mov edx, 0x8000
mov esi, 0xa4
mov dword [esp + 0x14], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov ebx, dword [ebp - 0xc8]
cmp ebx, 0xffffffd8
jne 0x61099629
mov eax, 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [0x61107528]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
jmp 0x61099629
mov ebx, dword [ebp - 0xc8]
test ebx, ebx
je 0x61099620
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x61099702
mov eax, dword [0x61107154]
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x2c], edx
mov eax, dword [eax + 0x1dc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 0xd1], 0
lea eax, [ebx + 0x2a]
cmp eax, 8
jbe 0x6109979a
test ebx, ebx
js 0x610999dc
lea eax, [ebx + ebx*4]
lea eax, [ebx + eax*8]
lea edx, [eax*4]
mov eax, dword [edx + 0x61107560]
test eax, eax
je 0x61099743
mov eax, dword [ebp - 0x30]
cmp dword [edx + 0x611075f8], eax
je 0x61099935
mov eax, edi
call sym.__ZN9sigpacket7processEv_4
test eax, eax
jle 0x610999ea
cmp ebx, 0x14
je 0x6109982e
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x610997a1
mov ebx, dword [ebp - 0xc8]
cmp ebx, 0xffffffd6
jne 0x61099620
mov eax, dword [0x61108bd8]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
test byte [0x6110a820], 1
jne 0x610999b0
mov dword [esp], 0
call sub.KERNEL32.dll_ExitThread
jmp dword [eax*4 + 0x6112e1d0]
test byte [0x6110a820], 1
jne 0x61099902
mov dword [esp], eax
call sub.KERNEL32.dll_SetEvent
sub esp, 4
jmp 0x61099762
xor edx, edx
mov eax, 3
call sym.__Z12proc_subprocmm_8
jmp 0x6109975b
mov dword [esp + 0x10], eax
mov eax, str.signalling_pack.wakeup__p
mov dword [esp + 0xc], eax
mov eax, str.DWORD_wait_sig_void_
mov dword [esp + 8], eax
mov eax, 0x800
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov eax, dword [ebp - 0x28]
jmp 0x610997ae
test byte [0x6110a820], 1
je 0x61099752
mov dword [esp + 0x10], ebx
mov eax, str.sig__d_already_queued
mov dword [esp + 0xc], eax
mov eax, str.DWORD_wait_sig_void_
mov dword [esp + 8], eax
mov eax, 0x800
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61099752
mov dword [esp], 0x6110a820
mov eax, dword [0x61107538]
mov dword [esp + 0x14], eax
mov eax, dword [0x61108bd8]
mov dword [esp + 0x10], eax
mov eax, str.entering_ReadFile_loop__my_readsig__p__my_sendsig__p
mov dword [esp + 0xc], eax
mov eax, str.DWORD_wait_sig_void_
mov dword [esp + 8], eax
mov eax, 0x800
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610995fd
mov dword [esp], 0x6110a820
mov esi, str.signal_thread_exiting
mov ebx, str.DWORD_wait_sig_void_
mov dword [esp + 0xc], esi
mov ecx, 0x800
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6109978e
neg ebx
mov eax, ebx
call sym.__Z9sig_cleari_4
jmp 0x6109975b
mov dword [esp + 4], edi
mov dword [esp], 0x61107560
call method.pending_signals.add_sigpacket_
jmp 0x61099752