Function at 0x6103c000
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 0x6103c135
movzx eax, word [ebx]
cmp ax, 2
je 0x6103c096
dec ax
je 0x6103c141
test byte [0x6110c854], 1
jne 0x6103c0d7
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], 0x6110c854
mov edx, 0x61123130
mov ecx, 0x61123157
mov dword [esp + 8], edx
mov eax, 0x40
mov edi, 0x6a
mov dword [esp + 0xc], ecx
mov esi, 0x84
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 0x6103c071
lea edi, [esp + 0x220]
jmp 0x6103c03c
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 0x6103c197
test byte [0x6110c854], 1
jne 0x6103c20c
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 0x6103c071
cmp dword [esp + 0xc0], 0xffffffff
je 0x6103c1d8
cmp dword [esp + 0xf0], 0x1e0078
je 0x6103c295
test byte [0x6110c854], 1
jne 0x6103c41a
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 9
mov dword [eax], 9
jmp 0x6103c183
test byte [0x6110c854], 1
jne 0x6103c24e
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 0x6103c071
mov dword [esp + 0x18], ebx
mov eax, 0x52
mov ebp, 0x61123157
mov dword [esp + 0x14], eax
mov edi, 0x61123130
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], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x6103c174
mov dword [esp], 0x6110c854
mov eax, 0x61123157
mov ebx, 2
mov dword [esp + 0xc], eax
mov eax, 0x61123130
mov ecx, 0x57
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 0x6103c1e1
mov eax, dword [0x611650ec]
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, 0x61109448
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 0x6103c472
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 0x6103c461
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 0x6103c3ea
movzx edx, byte [esp + 0x2b]
mov eax, 1
cmp dl, 0x73
je 0x6103c3e1
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 0x6103c073
mov dword [esp], 0x6110c854
mov eax, 9
mov ebp, 0x61123157
mov dword [esp + 0x18], eax
mov eax, 0x5c
mov edi, 0x61123130
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 0x6103c1bf
mov edx, 0x7e
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygwin_fhandler_socket.cc
call sym.__Z8seterrnoPKci_8
jmp 0x6103c3f3
mov edx, 0x63
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygwin_fhandler_socket.cc
call sym.__Z8seterrnoPKci_8
jmp 0x6103c183