Function at 0x6103b780
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24c
mov dword [esp + 0x244], edi
mov edi, dword [esp + 0x258]
mov dword [esp + 0x23c], ebx
mov ebx, eax
test edi, edi
mov dword [esp + 0x240], esi
mov esi, ecx
mov dword [esp + 0x248], ebp
mov ebp, dword [esp + 0x250]
je 0x6103b8b5
movzx eax, word [ebx]
cmp ax, 2
je 0x6103b816
dec ax
je 0x6103b8c1
test byte [0x6110a820], 1
jne 0x6103b857
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x6a
mov dword [eax], 0x6a
xor eax, eax
mov ebx, dword [esp + 0x23c]
mov esi, dword [esp + 0x240]
mov edi, dword [esp + 0x244]
mov ebp, dword [esp + 0x248]
add esp, 0x24c
ret
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, 1
mov dword [ebp], edx
mov ebx, dword [esp + 0x23c]
mov esi, dword [esp + 0x240]
mov edi, dword [esp + 0x244]
mov ebp, dword [esp + 0x248]
add esp, 0x24c
ret
mov dword [esp], 0x6110a820
mov edx, 0x611210b0
mov ecx, 0x611210d7
mov dword [esp + 8], edx
mov eax, 0x40
mov edi, 0x6a
mov dword [esp + 0xc], ecx
mov esi, 0x78
mov ebx, str.int_get_inet_addr_const_sockaddr__int__sockaddr_in__int__int__int_
mov dword [esp + 4], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x6a
mov dword [eax], 0x6a
jmp 0x6103b7f1
lea edi, [esp + 0x220]
jmp 0x6103b7bc
mov dword [esp], 0
lea edx, [ebx + 2]
mov ecx, 0x21
lea eax, [esp + 0xc0]
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
mov ebx, dword [esp + 0xe8]
test ebx, ebx
je 0x6103b917
test byte [0x6110a820], 1
jne 0x6103b98c
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], ebx
mov dword [eax], ebx
lea eax, [esp + 0xc0]
mov dword [esp], eax
call sym.path_conv::path_conv__
jmp 0x6103b7f1
cmp dword [esp + 0xc0], 0xffffffff
je 0x6103b958
cmp dword [esp + 0xf0], 0x1e0078
je 0x6103ba15
test byte [0x6110a820], 1
jne 0x6103bb9a
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 9
mov dword [eax], 9
jmp 0x6103b903
test byte [0x6110a820], 1
jne 0x6103b9ce
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 2
lea edx, [esp + 0xc0]
mov dword [eax], 2
mov dword [esp], edx
call sym.path_conv::path_conv__
jmp 0x6103b7f1
mov dword [esp + 0x18], ebx
mov eax, 0x46
mov ebp, 0x611210d7
mov dword [esp + 0x14], eax
mov edi, 0x611210b0
mov eax, str.int_get_inet_addr_const_sockaddr__int__sockaddr_in__int__int__int_
mov dword [esp + 0x10], eax
mov esi, 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6103b8f4
mov dword [esp], 0x6110a820
mov eax, 0x611210d7
mov ebx, 2
mov dword [esp + 0xc], eax
mov eax, 0x611210b0
mov ecx, 0x4b
mov dword [esp + 8], eax
mov edx, str.int_get_inet_addr_const_sockaddr__int__sockaddr_in__int__int__int_
mov eax, 0x40
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6103b961
mov eax, dword [0x611630ec]
xor ebx, ebx
mov ecx, pe_nt_image_headers32
lea edx, [esp + 0x110]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], ebx
mov ebx, 3
mov dword [esp + 0x14], ecx
mov ecx, 0x6110742c
mov dword [esp + 8], eax
mov eax, 0x80000000
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
mov dword [esp + 0x24], eax
inc eax
je 0x6103bbf2
xor ebx, ebx
xor ecx, ecx
mov edx, pe_nt_image_headers32
mov dword [esp + 0x20], ebx
xor eax, eax
lea ebx, [esp + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.cygwin1.dll__memset
mov dword [esp + 4], ebx
xor eax, eax
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, pe_nt_image_headers32
mov dword [esp + 8], eax
mov dword [esp], edx
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x6103bbe1
mov word [esp + 0x30], 2
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [edi + 8]
mov dword [esp + 0x18], eax
lea eax, [edi + 4]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x2b]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x32]
mov dword [esp + 8], eax
mov eax, str._hu__c__08x__08x__08x__08x
mov dword [esp + 4], eax
lea eax, [esp + 0x4a]
mov dword [esp + 0x10], edi
mov dword [esp], eax
call sym._sscanf_1
movzx eax, word [esp + 0x32]
xchg ah, al
mov word [esp + 0x32], ax
mov eax, 0x100007f
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 4], 0x100007f
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x254]
mov dword [ebp], 0x10
test eax, eax
je 0x6103bb6a
movzx edx, byte [esp + 0x2b]
mov eax, 1
cmp dl, 0x73
je 0x6103bb61
xor eax, eax
cmp dl, 0x64
sete al
add eax, eax
mov edx, dword [esp + 0x254]
mov dword [edx], eax
mov ebp, 1
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea edx, [esp + 0xc0]
mov dword [esp], edx
call sym.path_conv::path_conv__
mov eax, dword [esp + 0x20]
jmp 0x6103b7f3
mov dword [esp], 0x6110a820
mov eax, 9
mov ebp, 0x611210d7
mov dword [esp + 0x18], eax
mov eax, 0x50
mov edi, 0x611210b0
mov dword [esp + 0x14], eax
mov esi, 0x40
mov eax, str.int_get_inet_addr_const_sockaddr__int__sockaddr_in__int__int__int_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6103b93f
mov edx, 0x72
mov eax, str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygwin_fhandler_socket.cc
call sym.__Z8seterrnoPKci_8
jmp 0x6103bb73
mov edx, 0x57
mov eax, str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygwin_fhandler_socket.cc
call sym.__Z8seterrnoPKci_8
jmp 0x6103b903