Function at 0x61023e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, eax
lea eax, [edx + 0x30]
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, edx
mov dword [esp + 4], eax
lea eax, [esp + 0x98]
mov esi, dword [esp + 0xb4]
mov dword [esp], eax
mov edi, dword [esp + 0xb8]
call sym.__Z14to_timestruc_tP9_FILETIMEP8timespec_8
sub esp, 8
lea eax, [ebx + 0x38]
mov dword [esp + 4], eax
lea eax, [esp + 0xa0]
mov dword [esp], eax
call sym.__Z14to_timestruc_tP9_FILETIMEP8timespec_8
sub esp, 8
lea eax, [ebx + 0x40]
mov dword [esp + 4], eax
lea eax, [esp + 0x90]
mov dword [esp], eax
call sym.__Z14to_timestruc_tP9_FILETIMEP8timespec_8
sub esp, 8
mov eax, dword [esp + 0xa8]
test eax, eax
jne 0x610240f5
mov eax, dword [ebp + 0x54]
mov dword [ebx], eax
mov ecx, dword [esp + 0xb0]
lea eax, [ebp + 0x40]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0xac]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0xc4]
mov dword [ebx + 0x28], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.__ZN9path_conv11ndisk_linksEm_8
mov word [ebx + 0x14], ax
sub esp, 8
lea edx, [ebp + 0x48]
mov dword [esp + 0x34], edx
xor eax, eax
movzx edx, byte [edx + 0x10]
test dl, 0x10
je 0x61023f90
cmp dword [esp + 0xc0], 0
ja 0x610242e1
cmp dword [esp + 0xbc], 0xffffffff
ja 0x610242e1
test dl, 1
je 0x610242e1
mov edx, dword [esp + 0x34]
test byte [edx + 0x11], 8
jne 0x610242e1
lea esi, [esi]
lea edi, [edi]
test al, al
je 0x61024256
mov dword [ebx + 0x48], 0x10000
mov edx, dword [esp + 0xc0]
test edi, edi
mov eax, dword [esp + 0xbc]
mov dword [ebx + 0xc], edx
lea edx, [ebp + 0x90]
mov dword [ebx + 8], eax
mov dword [esp + 0x3c], edx
js 0x61024285
mov eax, esi
mov edx, edi
add eax, 0x3ff
adc edx, 0
test edx, edx
js 0x610242d0
shrd eax, edx, 0xa
sar edx, 0xa
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x40]
mov dword [ebx + 0x54], edx
xor edx, edx
cmp eax, 0xffffffff
jne 0x61024244
test edx, edx
je 0x61024101
mov dword [ebx + 0x10], 0x4000
lea esi, [ebp + 0x6c]
xor eax, eax
cmp byte [esi + 0x10], 0
jne 0x61024140
test eax, eax
je 0x6102415a
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
movzx edx, byte [ecx + 0x10]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
shr dl, 3
mov ecx, edx
lea edx, [ebx + 0x1c]
and ecx, 1
mov dword [esp + 0x14], edx
lea edx, [ebx + 0x18]
mov dword [esp + 0x10], edx
lea edx, [ebx + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp], ecx
call sym.__Z18get_file_attributeiPvPKcPjPmS3__24
sub esp, 0x18
test eax, eax
je 0x610241b0
or dword [ebx + 0x10], 0x124
xor eax, eax
cmp dword [esp + 0xc8], 0xffffffff
je 0x61024081
test byte [esp + 0xc8], 1
jne 0x610242f0
test al, al
jne 0x6102408c
or dword [ebx + 0x10], 0x80
mov eax, dword [ebp + 0x40]
xor edx, edx
cmp eax, 0xffffffff
je 0x610240a0
test al, 0x10
je 0x610240a0
mov edx, 1
nop
test edx, edx
je 0x61024428
mov eax, dword [ebx + 0x10]
or eax, 0x40c9
mov dword [ebx + 0x10], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x20]
test dl, 0x50
je 0x61024410
mov edx, dword [0x61106ec4]
or eax, 0x49
mov dword [ebx + 0x10], eax
mov edx, dword [edx + 0x178]
not edx
and eax, edx
mov dword [ebx + 0x10], eax
test byte [0x6110c854], 1
jne 0x610243a0
add esp, 0x7c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x3c
mov eax, dword [esp + 0xa8]
jmp 0x61023f06
mov dword [ebx + 0x10], 0
mov edx, dword [esp + 0x38]
test byte [edx + 0x20], 1
jne 0x61024334
cmp dword [edx + 0x30], 0x1e0078
jne 0x61024003
mov dword [ebx + 0x10], 0xc000
lea esi, [ebp + 0x6c]
xor eax, eax
cmp byte [esi + 0x10], 0
je 0x61024012
lea esi, [esi]
cmp dword [esi + 4], 0xf7
je 0x61024012
mov eax, 1
test eax, eax
jne 0x6102401a
mov eax, dword [ebp]
mov dword [esp], ebp
call dword [eax + 0xe8]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
movzx edx, byte [ecx + 0x10]
mov dword [esp + 4], eax
shr dl, 3
mov ecx, edx
lea edx, [ebx + 0x1c]
and ecx, 1
mov dword [esp + 0x14], edx
lea edx, [ebx + 0x18]
mov dword [esp + 0x10], edx
lea edx, [ebx + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 8], edx
call sym.__Z18get_file_attributeiPvPKcPjPmS3__24
sub esp, 0x18
test eax, eax
jne 0x61024060
lea esi, [esi]
xor eax, eax
cmp dword [esp + 0xc8], 0xffffffff
je 0x610241ca
test byte [esp + 0xc8], 1
jne 0x61024300
test al, al
je 0x61024210
mov eax, dword [ebp + 0x40]
xor edx, edx
cmp eax, 0xffffffff
je 0x610241f0
test al, 0x10
je 0x610241f0
mov edx, 1
jmp 0x610241f0
test edx, edx
jne 0x61024210
mov ecx, dword [esp + 0x38]
test byte [ecx + 0x20], 1
jne 0x61024210
and dword [ebx + 0x10], 0xffffff6d
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebx + 0x10]
test ah, 0xf0
jne 0x610240dc
xor edx, edx
cmp byte [esi + 0x10], 0
je 0x61024232
cmp dword [esi + 4], 0xf7
je 0x61024232
mov edx, 1
test edx, edx
jne 0x61024470
or eax, 0x8000
jmp 0x610240d9
test al, 0x10
je 0x61023ff4
mov edx, 1
jmp 0x61023ff4
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, edx
or ecx, eax
je 0x61024310
lea ecx, [ebp + 0x90]
mov dword [esp + 0x3c], ecx
mov dword [ebx + 8], eax
test edi, edi
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x48], 0x10000
jns 0x61023fc5
xor eax, eax
cmp dword [esp + 0xc8], 0xffffffff
je 0x610242a3
test dword [esp + 0xc8], 0xa00
je 0x610242a3
mov eax, 1
test al, al
jne 0x6102448e
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x2c]
mov eax, esi
add eax, 0x3ff
mov edx, edi
adc edx, 0
test edx, edx
jns 0x61023fd9
lea esi, [esi]
lea edi, [edi]
mov eax, esi
mov edx, edi
add eax, 0x7fe
adc edx, 0
jmp 0x61023fd9
mov eax, 1
jmp 0x61023f90
mov eax, 1
jmp 0x61024081
mov eax, 1
jmp 0x610241ca
lea eax, [ebp + 0x90]
xor edx, edx
mov dword [esp + 0x3c], eax
mov dword [esp], eax
xor eax, eax
call sym.__Z14hash_path_nameyPKc_12
mov dword [ebp + 0x18], eax
sub esp, 4
mov dword [ebp + 0x1c], edx
jmp 0x61024270
mov dword [ebx + 0x2c], 0
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp]
mov dword [ebx + 0x10], 0xa1ff
mov ecx, dword [ecx + 0x4c]
mov dword [ebx + 0x28], ecx
mov dword [esp], ebp
call dword [eax + 0xe8]
mov ecx, dword [esp + 0x34]
movzx edx, byte [ecx + 0x10]
shr dl, 3
mov ecx, edx
lea edx, [ebx + 0x1c]
and ecx, 1
mov dword [esp + 0x14], edx
lea edx, [ebx + 0x18]
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov eax, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.__Z18get_file_attributeiPvPKcPjPmS3__24
sub esp, 0x18
jmp 0x610240dc
mov eax, 0x60
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x10], ebx
mov dword [esp], 0x6110c854
mov dword [esp + 0x14], eax
mov eax, str.0__fstat_____p__st_atime_x_st_size_D__st_mode_p__st_ino_D__sizeof_d
mov dword [esp + 0xc], eax
mov eax, str.int_fhandler_base::fstat_helper___stat64__FILETIME__FILETIME__FILETIME__DWORD__ULONGLONG__LONGLONG__ULONGLONG__DWORD__DWORD_
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
add esp, 0x7c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x3c
mov edx, dword [0x61106ec4]
mov edx, dword [edx + 0x178]
not edx
and edx, eax
mov dword [ebx + 0x10], edx
jmp 0x610240dc
mov eax, dword [ebx + 0x10]
test ah, 0xf0
jne 0x610240b3
xor edx, edx
cmp byte [esi + 0x10], 0
je 0x6102444a
cmp dword [esi + 4], 0xf7
je 0x6102444a
mov edx, 1
test edx, edx
je 0x61024515
mov eax, dword [esi + 4]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x10], eax
jmp 0x610240b3
mov eax, dword [esi + 4]
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x10], eax
jmp 0x610240dc
mov eax, dword [ebp]
mov dword [esp], ebp
call dword [eax + 0xe8]
mov edi, dword [eax]
test edi, edi
je 0x610242ab
lea eax, [ebp + 0x6c]
xor edx, edx
cmp byte [eax + 0x10], 0
je 0x610244bd
cmp dword [eax + 4], 0xf7
je 0x610244bd
mov edx, 1
test edx, edx
jne 0x610242ab
mov eax, dword [ebp]
mov dword [esp], ebp
mov esi, 0x1c
call dword [eax + 0xe8]
mov dword [esp + 0x10], esi
lea edx, [esp + 0x60]
mov ecx, 0x10
mov dword [esp + 8], edx
lea edx, [esp + 0x48]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.610ffe80
sub esp, 0x14
test eax, eax
jne 0x610242ab
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
jmp 0x61023fc5
mov edx, dword [esp + 0x38]
or eax, 0x8000
mov dword [ebx + 0x10], eax
mov eax, dword [edx + 0x20]
test al, 0x50
jne 0x61024660
test ah, 1
jne 0x61024660
mov eax, dword [sym.cygwin1.dll__check_for_executable]
test eax, eax
je 0x61024660
xor eax, eax
mov edi, 1
xor esi, esi
mov dword [esp + 0x44], eax
mov eax, dword [ebp]
mov dword [esp], ebp
call dword [eax + 0xe4]
mov dword [esp + 0xc], edi
lea edi, [esp + 0x44]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
cmp eax, 0xffffffff
mov esi, eax
je 0x61024668
test eax, eax
jne 0x6102458f
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x610245c1
mov eax, dword [ebp]
mov dword [esp], ebp
call dword [eax + 0xe4]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
inc eax
je 0x61024660
mov byte [esp + 0x52], 0
mov byte [esp + 0x51], 0
mov byte [esp + 0x50], 0
mov eax, dword [ebp]
mov dword [esp], ebp
call dword [eax + 0xe4]
lea edx, [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0xc], edx
mov edx, 3
mov dword [esp + 8], edx
lea edx, [esp + 0x50]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x61024639
xor eax, eax
cmp dword [esp + 0x40], 1
jle 0x61024629
movzx edx, byte [esp + 0x50]
cmp dl, 0x23
je 0x61024692
cmp dl, 0x3a
je 0x6102468b
cmp dl, 0x4d
je 0x6102467d
test al, al
je 0x61024639
mov ecx, dword [esp + 0x38]
or dword [ecx + 0x20], 0x10
or dword [ebx + 0x10], 0x49
mov eax, dword [ebp]
mov dword [esp], ebp
xor ebp, ebp
call dword [eax + 0xe4]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
mov eax, dword [ebx + 0x10]
jmp 0x610240b3
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x6102458f
mov eax, dword [ebx + 0x10]
jmp 0x610240b3
cmp byte [esp + 0x51], 0x5a
jne 0x61024629
mov eax, 1
jmp 0x61024629
cmp byte [esp + 0x51], 0xa
jmp 0x61024682
cmp byte [esp + 0x51], 0x21
jne 0x61024624
mov eax, 1
jmp 0x61024629