Function at 0x6ada8f70
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 0x6ada92f0
mov ebp, 0x18
test byte [esp + 0xc8], 4
je 0x6ada929f
mov dword [esp + 0x1c], 0x18
xor edi, edi
xor ebx, ebx
mov esi, 0x100
jmp 0x6ada8fd6
sub dword [esp + 0x1c], 1
lea eax, [esi + esi + 0x100]
mov ebx, esi
je 0x6ada9682
mov esi, eax
mov dword [esp], edi
mov ebp, edi
mov dword [esp + 4], esi
call fcn.6adab420
mov edi, eax
test eax, eax
je 0x6ae0c1a1
mov dword [esp], 0
call dword [0x6ae0f290]
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 0x6ada8fc0
mov dword [esp], 0
call dword [0x6ae0f290]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x6ae0c1e7
cmp ebx, 1
jbe 0x6ada905f
movzx eax, byte [edi]
cmp al, 0xff
je 0x6ada9530
test al, al
js 0x6ada957e
cmp byte [edi + 1], 0
je 0x6ada94c0
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.6ad8cde0
mov ebp, eax
test eax, eax
jne 0x6ada93a8
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 0x6ada93c4
mov eax, 0xa
mov word [esi], ax
mov ecx, dword [esp + 0xc4]
xor edi, edi
test ecx, ecx
jle 0x6ada95b0
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 0x6ada90e8
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 0x6ada9290
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 0x6ada9290
mov ecx, edi
mov edi, esi
mov byte [esp + 0x33], cl
test eax, eax
je 0x6ada9290
lea esi, [esi]
nop
mov esi, ebx
jmp 0x6ada9174
add esi, 2
sub eax, 1
je 0x6ada9290
cmp word [esi], 0xa
jne 0x6ada9168
cmp esi, ebx
jbe 0x6ada91a2
nop
mov dword [esp + 4], 8
movzx eax, word [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_iswctype
test eax, eax
je 0x6ada92b0
add ebx, 2
cmp ebx, esi
jb 0x6ada9180
mov ebp, esi
lea esi, [esi]
mov eax, ebp
sub eax, ebx
je 0x6ada9273
movzx edx, word [ebx]
cmp dx, 0x3b
je 0x6ada9273
cmp dx, 0x23
je 0x6ada9273
xor edx, edx
mov word [ebp], dx
movzx edx, word [ebx]
mov word [esp + 0x28], dx
cmp dx, 0x5b
je 0x6ada9310
mov ebp, dword [esp + 0x24]
test ebp, ebp
js 0x6ada93f0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x6ada9220
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 0x6ada9220
cmp eax, 2
ja 0x6ada94fb
lea esi, [esi]
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x6ada924c
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 0x6ada962e
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 0x6ada9542
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 0x6ada9290
mov eax, dword [esp + 0x1c]
sub eax, ebx
sar eax, 1
test eax, eax
jne 0x6ada9160
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 0x6ada92cb
jmp 0x6ada91a8
sub ebp, 2
cmp ebp, ebx
jbe 0x6ada91a8
mov dword [esp + 4], 8
movzx eax, word [ebp - 2]
mov dword [esp], eax
call sub.msvcrt.dll_iswctype
test eax, eax
jne 0x6ada92c0
jmp 0x6ada91a8
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x6ada9408
mov edi, dword [esp + 0xb4]
jmp 0x6ada903d
lea ebp, [ebx + eax - 2]
cmp word [ebp], 0x5d
jne 0x6ada91e1
cmp byte [esp + 0x33], 0
je 0x6ada91e1
xor eax, eax
mov word [ebp], ax
mov eax, dword [esp + 0xc4]
test eax, eax
jle 0x6ada9642
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 0x6ada9373
add ebx, 1
cmp ebp, ebx
je 0x6ada9632
mov eax, dword [esi + ebx*8]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x6ada9368
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 0x6ada9273
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x6ada929f
mov dword [esp], edi
call fcn.6adab410
jmp 0x6ada929f
mov dword [esp], edi
mov edi, 0xa
call fcn.6adab410
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 0x6ada90b4
cmp dword [esp + 0x24], 0xffffffff
je 0x6ada951a
mov dword [esp + 0x24], 0xfffffffe
jmp 0x6ada9273
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 0x6ae0c205
lea eax, [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__fstat64]
test eax, eax
jne 0x6ae0c1c1
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
test ecx, ecx
jne 0x6ada965c
mov dword [esp], eax
call fcn.6adab3e0
mov edi, eax
test eax, eax
je 0x6ada965c
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.6ad90710
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 0x6ae0c180
mov ebx, dword [esp + 0x70]
jmp 0x6ada903d
mov esi, edi
lea eax, [ebx + 2]
mov dword [esp], eax
call fcn.6adab3e0
mov dword [esp + 0x20], eax
test eax, eax
je 0x6ada95bd
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 0x6ada9093
lea eax, [ebx + eax - 2]
movzx edx, word [esp + 0x28]
cmp dx, word [eax]
jne 0x6ada9220
xor edx, edx
add ebx, 2
mov word [eax], dx
jmp 0x6ada9220
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x6ada9273
jmp 0x6ae0c160
cmp byte [edi + 1], 0xfe
jne 0x6ada905f
sub ebx, 2
lea esi, [edi + 2]
jmp 0x6ada94c2
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.6adab420
mov edx, eax
test eax, eax
je 0x6ada95de
mov ecx, dword [esp + 0x28]
mov dword [ebp], eax
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ecx
jmp 0x6ada926a
cmp ebx, 2
je 0x6ada905f
cmp al, 0xef
mov eax, edi
jne 0x6ada9061
cmp byte [edi + 1], 0xbb
jne 0x6ada9061
cmp byte [edi + 2], 0xbf
jne 0x6ada9061
sub ebx, 3
lea eax, [edi + 3]
jmp 0x6ada9061
mov dword [esp + 0x24], 0xffffffff
jmp 0x6ada9105
mov ebx, dword [esp + 0xb4]
mov ebp, 0x27
test ebx, ebx
jne 0x6ada929f
mov dword [esp], edi
call fcn.6adab410
jmp 0x6ada929f
mov ebp, 0x27
mov eax, dword [esp + 0xc4]
xor ebx, ebx
test eax, eax
jle 0x6ada9615
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.6adab410
cmp edi, ebx
jne 0x6ada9600
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.6adab410
add esp, 0x9c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, eax
jmp 0x6ada95e3
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 0x6ada93fb
jmp 0x6ae0c134
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.6ae0b475
jmp 0x6ada929f
jmp 0x6ae0c1a3
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.6ae0b4c9
mov dword [esp + 0x24], 0xfffffffe
jmp 0x6ada9273
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.6ae0b4c9
jmp 0x6ada9273
mov eax, dword [esp + 0x24]
mov dword [esp], str.Error_reading___ls_
mov dword [esp + 4], eax
call fcn.6ae0b49f
mov dword [esp], edi
call fcn.6adab410
jmp 0x6ada929f
mov edi, ebp
mov dword [esp], str.Too_much_data_sent_on_stdin_
mov ebp, 0x18
call fcn.6ae0b475
mov dword [esp], edi
call fcn.6adab410
jmp 0x6ada929f
mov eax, dword [esp + 0x24]
mov dword [esp], str.Cant_stat___ls_
mov ebp, 0x3f
mov dword [esp + 4], eax
call fcn.6ae0b49f
mov dword [esp], ebx
call sub.msvcrt.dll__close
jmp 0x6ada929f
mov dword [esp], str.Error_reading_stdin
mov ebp, 0x32
call fcn.6ae0b49f
mov dword [esp], edi
call fcn.6adab410
jmp 0x6ada929f
mov eax, dword [esp + 0x24]
mov dword [esp], 0x6ae19e0c
mov ebp, 0x2f
mov dword [esp + 4], eax
call fcn.6ae0b49f
jmp 0x6ada929f