Function at 0x6ada91b0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb0]
or eax, dword [esp + 0xb4]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0xb8]
jne 0x6ada9530
mov ebp, 0x18
test byte [esp + 0xc8], 4
je 0x6ada94df
mov dword [esp + 0x1c], 0x18
xor edi, edi
xor ebx, ebx
mov esi, 0x100
jmp 0x6ada9216
sub dword [esp + 0x1c], 1
lea eax, [esi + esi + 0x100]
mov ebx, esi
je 0x6ada98c2
mov esi, eax
mov dword [esp], edi
mov ebp, edi
mov dword [esp + 4], esi
call fcn.6adab660
mov edi, eax
test eax, eax
je 0x6ae0fff1
mov dword [esp], 0
call dword [0x6ae132b0]
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [esp + 8], eax
lea eax, [edi + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fread
add ebx, eax
cmp ebx, esi
je 0x6ada9200
mov dword [esp], 0
call dword [0x6ae132b0]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x6ae10037
cmp ebx, 1
jbe 0x6ada929f
movzx eax, byte [edi]
cmp al, 0xff
je 0x6ada9770
test al, al
js 0x6ada97be
cmp byte [edi + 1], 0
je 0x6ada9700
mov eax, edi
lea ecx, [esp + 0x58]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x48]
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.6ad8cdd0
mov ebp, eax
test eax, eax
jne 0x6ada95e8
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0xb4]
and ebx, 0xfffffffe
lea esi, [eax + ebx]
test ebp, ebp
je 0x6ada9604
mov eax, 0xa
mov word [esi], ax
mov ecx, dword [esp + 0xc4]
xor edi, edi
test ecx, ecx
jle 0x6ada97f0
mov dword [esp + 0x1c], ebx
mov edx, 0xffffffff
xor eax, eax
mov ecx, 1
mov ebp, dword [esp + 0xc0]
mov esi, dword [esp + 0xc4]
lea esi, [esi]
nop
mov ebx, dword [ebp + eax*8]
cmp word [ebx], 0
cmove edx, eax
cmovne edi, ecx
add eax, 1
cmp esi, eax
jne 0x6ada9328
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [ebx + 2]
lea ecx, [edx + eax]
mov dword [esp + 0x1c], ecx
cmp edx, ecx
je 0x6ada94d0
mov ecx, dword [esp + 0xc8]
sar eax, 1
mov ebx, edx
mov esi, 1
and ecx, 1
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xc8]
and ecx, 2
mov dword [esp + 0x34], ecx
test edx, edx
je 0x6ada94d0
mov ecx, edi
mov edi, esi
mov byte [esp + 0x33], cl
test eax, eax
je 0x6ada94d0
lea esi, [esi]
nop
mov esi, ebx
jmp 0x6ada93b4
add esi, 2
sub eax, 1
je 0x6ada94d0
cmp word [esi], 0xa
jne 0x6ada93a8
cmp esi, ebx
jbe 0x6ada93e2
nop
mov dword [esp + 4], 8
movzx eax, word [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_iswctype
test eax, eax
je 0x6ada94f0
add ebx, 2
cmp ebx, esi
jb 0x6ada93c0
mov ebp, esi
lea esi, [esi]
mov eax, ebp
sub eax, ebx
je 0x6ada94b3
movzx edx, word [ebx]
cmp dx, 0x3b
je 0x6ada94b3
cmp dx, 0x23
je 0x6ada94b3
xor edx, edx
mov word [ebp], dx
movzx edx, word [ebx]
mov word [esp + 0x28], dx
cmp dx, 0x5b
je 0x6ada9550
mov ebp, dword [esp + 0x24]
test ebp, ebp
js 0x6ada9630
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x6ada9460
movzx edx, word [esp + 0x28]
cmp dx, 0x22
sete cl
cmp dx, 0x27
mov ebp, ecx
sete cl
mov edx, ebp
or dl, cl
je 0x6ada9460
cmp eax, 2
ja 0x6ada973b
lea esi, [esi]
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x6ada948c
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [esp + 0xcc]
test eax, eax
jne 0x6ada986e
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0x24]
mov ebp, dword [eax + edx*8 + 4]
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
cmp dword [ebp + 8], eax
je 0x6ada9782
lea ecx, [eax + 1]
mov dword [ebp + 4], ecx
mov dword [edx + eax*4], ebx
lea ebx, [esi + 2]
add edi, 1
cmp ebx, dword [esp + 0x1c]
je 0x6ada94d0
mov eax, dword [esp + 0x1c]
sub eax, ebx
sar eax, 1
test eax, eax
jne 0x6ada93a0
nop
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0x20]
xor ebp, ebp
mov dword [eax], ecx
add esp, 0x9c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, esi
cmp ebx, esi
jb 0x6ada950b
jmp 0x6ada93e8
sub ebp, 2
cmp ebp, ebx
jbe 0x6ada93e8
mov dword [esp + 4], 8
movzx eax, word [ebp - 2]
mov dword [esp], eax
call sub.msvcrt.dll_iswctype
test eax, eax
jne 0x6ada9500
jmp 0x6ada93e8
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x6ada9648
mov edi, dword [esp + 0xb4]
jmp 0x6ada927d
lea ebp, [ebx + eax - 2]
cmp word [ebp], 0x5d
jne 0x6ada9421
cmp byte [esp + 0x33], 0
je 0x6ada9421
xor eax, eax
mov word [ebp], ax
mov eax, dword [esp + 0xc4]
test eax, eax
jle 0x6ada9882
lea eax, [ebx + 2]
xor edx, edx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0xc0]
mov dword [esp + 0x3c], ebx
mov ebx, edx
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0xc4]
mov dword [esp + 0x38], edi
mov edi, eax
jmp 0x6ada95b3
add ebx, 1
cmp ebp, ebx
je 0x6ada9872
mov eax, dword [esi + ebx*8]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x6ada95a8
mov ebp, dword [esp + 0x28]
mov eax, 0x5d
mov esi, dword [esp + 0x24]
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x38]
mov word [ebp], ax
jmp 0x6ada94b3
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x6ada94df
mov dword [esp], edi
call fcn.6adab650
jmp 0x6ada94df
mov dword [esp], edi
mov edi, 0xa
call fcn.6adab650
mov edx, dword [esp + 0x24]
mov eax, str._stdin_
mov word [esi], di
test edx, edx
cmovne eax, edx
mov dword [esp + 0xb0], eax
jmp 0x6ada92f4
cmp dword [esp + 0x24], 0xffffffff
je 0x6ada975a
mov dword [esp + 0x24], 0xfffffffe
jmp 0x6ada94b3
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wopen]
mov ebx, eax
test eax, eax
js 0x6ae10055
lea eax, [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__fstat64]
test eax, eax
jne 0x6ae10011
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
test ecx, ecx
jne 0x6ada989c
mov dword [esp], eax
call fcn.6adab620
mov edi, eax
test eax, eax
je 0x6ada989c
mov eax, dword [esp + 0x70]
mov dword [esp + 4], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp], eax
and byte [esp + 0x4c], 0xfe
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.6ad90840
mov ebx, dword [sym.imp.msvcrt.dll__errno]
mov ebp, eax
call ebx
mov esi, dword [eax]
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll__close
call ebx
mov dword [eax], esi
test ebp, ebp
jne 0x6ae0ffd0
mov ebx, dword [esp + 0x70]
jmp 0x6ada927d
mov esi, edi
lea eax, [ebx + 2]
mov dword [esp], eax
call fcn.6adab620
mov dword [esp + 0x20], eax
test eax, eax
je 0x6ada97fd
mov dword [esp + 4], esi
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, ebx
xor edx, edx
and eax, 0xfffffffe
mov word [esi + eax], dx
jmp 0x6ada92d3
lea eax, [ebx + eax - 2]
movzx edx, word [esp + 0x28]
cmp dx, word [eax]
jne 0x6ada9460
xor edx, edx
add ebx, 2
mov word [eax], dx
jmp 0x6ada9460
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x6ada94b3
jmp 0x6ae0ffb0
cmp byte [edi + 1], 0xfe
jne 0x6ada929f
sub ebx, 2
lea esi, [edi + 2]
jmp 0x6ada9702
lea ecx, [eax + eax*2]
add eax, 4
mov dword [esp], edx
shr ecx, 1
cmp ecx, eax
cmovb ecx, eax
lea eax, [ecx*4]
mov dword [esp + 0x28], ecx
mov dword [esp + 4], eax
call fcn.6adab660
mov edx, eax
test eax, eax
je 0x6ada981e
mov ecx, dword [esp + 0x28]
mov dword [ebp], eax
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ecx
jmp 0x6ada94aa
cmp ebx, 2
je 0x6ada929f
cmp al, 0xef
mov eax, edi
jne 0x6ada92a1
cmp byte [edi + 1], 0xbb
jne 0x6ada92a1
cmp byte [edi + 2], 0xbf
jne 0x6ada92a1
sub ebx, 3
lea eax, [edi + 3]
jmp 0x6ada92a1
mov dword [esp + 0x24], 0xffffffff
jmp 0x6ada9345
mov ebx, dword [esp + 0xb4]
mov ebp, 0x27
test ebx, ebx
jne 0x6ada94df
mov dword [esp], edi
call fcn.6adab650
jmp 0x6ada94df
mov ebp, 0x27
mov eax, dword [esp + 0xc4]
xor ebx, ebx
test eax, eax
jle 0x6ada9855
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
nop
mov eax, dword [esi + ebx*8 + 4]
add ebx, 1
mov eax, dword [eax]
mov dword [esp], eax
call fcn.6adab650
cmp edi, ebx
jne 0x6ada9840
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.6adab650
add esp, 0x9c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, eax
jmp 0x6ada9823
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
mov eax, 0x5d
mov word [ebp], ax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6ada963b
jmp 0x6ae0ff84
mov dword [esp], ebx
mov ebp, 0x27
call sub.msvcrt.dll__close
mov eax, dword [esp + 0x24]
mov dword [esp], str.Not_enough_memory_to_read___ls_
mov dword [esp + 4], eax
call fcn.6ae0f1f5
jmp 0x6ada94df
jmp 0x6ae0fff3
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], str._ls:_lu:_Unrecognized_section___ls_
call fcn.6ae0f249
mov dword [esp + 0x24], 0xfffffffe
jmp 0x6ada94b3
mov eax, dword [esp + 0xb0]
mov dword [esp + 8], edi
mov dword [esp], str._ls:_lu:_Not_in_a_bracketed_section_
mov dword [esp + 4], eax
call fcn.6ae0f249
jmp 0x6ada94b3
mov eax, dword [esp + 0x24]
mov dword [esp], str.Error_reading___ls_
mov dword [esp + 4], eax
call fcn.6ae0f21f
mov dword [esp], edi
call fcn.6adab650
jmp 0x6ada94df
mov edi, ebp
mov dword [esp], str.Too_much_data_sent_on_stdin_
mov ebp, 0x18
call fcn.6ae0f1f5
mov dword [esp], edi
call fcn.6adab650
jmp 0x6ada94df
mov eax, dword [esp + 0x24]
mov dword [esp], str.Cant_stat___ls_
mov ebp, 0x3f
mov dword [esp + 4], eax
call fcn.6ae0f21f
mov dword [esp], ebx
call sub.msvcrt.dll__close
jmp 0x6ada94df
mov dword [esp], str.Error_reading_stdin
mov ebp, 0x32
call fcn.6ae0f21f
mov dword [esp], edi
call fcn.6adab650
jmp 0x6ada94df
mov eax, dword [esp + 0x24]
mov dword [esp], 0x6ae1df6c
mov ebp, 0x2f
mov dword [esp + 4], eax
call fcn.6ae0f21f
jmp 0x6ada94df