Function at 0x6101b2e0
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov eax, dword [0x61109448]
mov esi, dword [esp + 0x74]
test byte [0x6110c854], 1
mov dword [esp + 0x40], eax
mov eax, dword [0x6110944c]
mov dword [esp + 0x44], eax
mov eax, dword [0x61109450]
mov dword [esp + 0x48], eax
jne 0x6101b5b4
lea eax, [ebx + 0x90]
mov dword [esp + 0x30], eax
movzx eax, word [ebx + 4]
shr eax, 7
and eax, 7
cmp eax, 1
jl 0x6101b4b9
cmp eax, 2
jg 0x6101b4b0
mov dword [ebx + 0xc], 0x80000000
test esi, 0x400
je 0x6101b4f0
test esi, 3
je 0x6101b4f0
mov eax, esi
shr eax, 9
and al, 1
cmp al, 1
sbb edi, edi
and edi, 3
add edi, 2
lea esi, [esi]
lea edi, [edi]
test esi, 0x800
je 0x6101b3a0
test esi, 0x200
je 0x6101b3a0
mov edi, 1
lea esi, [esi]
lea edi, [edi]
mov eax, dword [0x611650ec]
mov ebp, pe_nt_image_headers32
test esi, 0x100000
mov dword [esp + 0x38], ebp
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
je 0x6101b3c6
mov ecx, 0x2000080
mov dword [esp + 0x38], ecx
test esi, 0x2000
je 0x6101b3d6
or dword [esp + 0x38], 0x80000000
test esi, 0x80000
je 0x6101b3e6
or dword [esp + 0x38], 0x20000000
cmp word [ebx + 0x72], 0x75
je 0x6101b5f2
test esi, 0x200
jne 0x6101b503
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebp, eax
je 0x6101b674
mov dword [ebx + 0x10], ebp
mov eax, dword [ebx + 0x60]
test al, 2
jne 0x6101b530
mov dword [esp + 4], esi
shr eax, 0x19
and al, 1
mov dword [esp], ebx
cmp al, 1
sbb eax, eax
not eax
and eax, 0x20000
mov dword [esp + 8], eax
call method.fhandler_base.set_flags_int__int_
mov eax, 1
mov dword [esp + 0x3c], eax
movzx eax, word [ebx + 4]
mov word [ebx + 8], ax
movzx edx, byte [0x6110c854]
and edx, 1
test dl, dl
jne 0x6101b610
jne 0x6101b56d
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x3c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
jle 0x6101b600
mov eax, esi
and eax, 3
je 0x6101b343
dec eax
sete al
movzx eax, al
dec eax
and eax, 0x80000000
add eax, 0x40000000
mov dword [ebx + 0xc], eax
test esi, 0x400
jne 0x6101b356
lea esi, [esi]
lea edi, [edi]
mov eax, esi
shr eax, 9
and al, 1
cmp al, 1
sbb edi, edi
add edi, 4
jmp 0x6101b380
cmp dword [ebx + 0x70], 0xf7
jne 0x6101b3fd
test byte [esp + 0x78], 0x92
jne 0x6101b51c
or dword [esp + 0x38], 1
mov eax, dword [esp + 0x38]
and eax, 0x31a7
mov dword [ebx + 0x40], eax
jmp 0x6101b3fd
mov dword [esp + 4], esi
mov eax, 0x10000
mov dword [esp + 8], eax
mov dword [esp], ebx
call method.fhandler_base.set_flags_int__int_
mov eax, 1
mov dword [esp + 0x3c], eax
movzx eax, word [ebx + 4]
mov word [ebx + 8], ax
movzx eax, byte [0x6110c854]
test al, 1
jne 0x6101b610
test al, 1
je 0x6101b4a0
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x30]
mov ebx, str._d__fhandler_base::open___s___p_
mov dword [esp + 0xc], ebx
mov ecx, str.int_fhandler_base::open_9x_int__mode_t_
mov edx, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edx
mov dword [esp], 0x6110c854
mov dword [esp + 0x10], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov eax, dword [esp + 0x3c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], esi
lea eax, [ebx + 0x90]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
mov eax, str.__s___p_
mov dword [esp + 0xc], eax
mov eax, str.int_fhandler_base::open_9x_int__mode_t_
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6101b327
or dword [esp + 0x38], 0x40000000
jmp 0x6101b3f1
mov dword [ebx + 0xc], 0x80000100
jmp 0x6101b34a
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], ebp
mov ebp, 0x40
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov dword [esp], 0x6110c854
mov dword [esp + 0x14], eax
mov eax, str._p__CreateFile___s___p___p___p___p___p__0_
mov dword [esp + 0xc], eax
mov eax, str.int_fhandler_base::open_9x_int__mode_t_
mov dword [esp + 8], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [0x6110c854]
test al, 1
jmp 0x6101b567
mov eax, dword [ebx + 0x40]
xor edx, edx
cmp eax, 0xffffffff
je 0x6101b690
test al, 0x10
jne 0x6101b6f7
lea esi, [esi]
lea edi, [edi]
test edx, edx
je 0x6101b6d8
test esi, 3
je 0x6101b6c2
test byte [0x6110c854], 1
jne 0x6101b724
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x15
mov dword [eax], 0x15
movzx eax, byte [ebx + 4]
jmp 0x6101b6cb
movzx eax, byte [ebx + 4]
or al, 0x10
mov byte [ebx + 4], al
test al, 0x10
jne 0x6101b440
jmp 0x6101b556
call sub.KERNEL32.dll_GetLastError
cmp eax, 6
je 0x6101b6fe
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygwin_fhandler.cc
mov edx, 0x21e
call sym.__Z8seterrnoPKci_8
movzx eax, byte [ebx + 4]
jmp 0x6101b6cb
mov edx, 1
jmp 0x6101b690
test byte [0x6110c854], 1
jne 0x6101b76b
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 2
mov dword [eax], 2
movzx eax, byte [ebx + 4]
jmp 0x6101b6cb
mov dword [esp], 0x6110c854
mov eax, 0x15
mov dword [esp + 0x18], eax
mov eax, 0x217
mov dword [esp + 0x14], eax
mov eax, str.int_fhandler_base::open_9x_int__mode_t_
mov dword [esp + 0x10], eax
mov eax, 0x6111d073
mov dword [esp + 0xc], eax
mov eax, 0x6111cff0
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6101b6a5
mov dword [esp], 0x6110c854
mov eax, str.int_fhandler_base::open_9x_int__mode_t_
mov ecx, 2
mov dword [esp + 0x10], eax
mov eax, 0x6111d073
mov edx, 0x21c
mov dword [esp + 0xc], eax
mov eax, 0x6111cff0
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6101b707