Function at 0x100675e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x710
mov eax, dword [0x1013024]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x7e
pop ecx
mov dword [ebp - 0x710], eax
xor eax, eax
cmp ebx, esi
lea edi, [ebp - 0x2fc]
mov dword [ebp - 0x300], esi
rep stosd dword es:[edi], eax
push 0x3f
pop ecx
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], esi
rep stosd dword es:[edi], eax
mov ecx, 0xf9
lea edi, [ebp - 0x6e4]
mov dword [ebp - 0x6e8], esi
mov dword [ebp - 0x6f4], esi
mov dword [ebp - 0x6f8], esi
mov dword [ebp - 0x6f0], esi
mov dword [ebp - 0x700], esi
mov dword [ebp - 0x704], esi
mov dword [ebp - 0x70c], esi
mov dword [ebp - 0x6fc], esi
rep stosd dword es:[edi], eax
je 0x1006ad8
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call edi
cmp eax, esi
mov dword [ebp - 0x6ec], eax
je 0x1006ad8
cmp eax, 3
je 0x1006816
cmp eax, 0xffffffff
je 0x1006816
inc esi
mov dword [ebp - 0x70c], esi
jmp 0x100683c
lea ecx, [ebp - 0x700]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor esi, esi
inc esi
push esi
push dword [ebp - 0x6ec]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
test eax, eax
je 0x1006ad8
push 0xfffffffffffffff5
call edi
push 0x100129c
push ebx
mov dword [ebp - 0x708], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1006862
push 0xfd
call fcn.0100ec7a
jmp 0x100689b
lea eax, [ebp - 0x704]
push eax
mov eax, 0xfe
push eax
lea ecx, [ebp - 0x300]
push ecx
push 0x400
push 0
push eax
mov dword [ebp - 0x704], ebx
call fcn.0100ec7a
push eax
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x300]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.0100e8c4
cmp dword [ebp - 0x70c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea eax, [ebp - 0x6f0]
push eax
push esi
jne 0x10069d6
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1006916
cmp dword [ebp - 0x6f0], 0
je 0x100692e
cmp word [ebp - 0x6f8], 0xd
je 0x100692e
push 0
lea eax, [ebp - 0x6f0]
push eax
push esi
lea eax, [ebp - 0x6f8]
push eax
push dword [ebp - 0x708]
call ebx
mov eax, dword [ebp - 0x6f8]
inc dword [ebp - 0x6fc]
mov dword [ebp - 0x6f4], eax
push 0
lea eax, [ebp - 0x6f0]
push eax
push esi
lea eax, [ebp - 0x6f8]
push eax
push dword [ebp - 0x6ec]
call edi
test eax, eax
jne 0x10068ce
jmp 0x1006ad8
movzx eax, word [ebp - 0x6f4]
push eax
lea eax, [ebp - 0x104]
push 0x1001318
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp word [ebp - 0x6fc], si
jne 0x10069a1
lea eax, [ebp - 0x6e8]
push eax
push 0x493e1
call fcn.01006727
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
je 0x1006a69
lea eax, [ebp - 0x6e8]
push eax
push 0x493e2
call fcn.01006727
push eax
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x10069ed
jmp 0x1006a67
jbe 0x10069ed
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10012a8
add eax, 0x20
push eax
call fcn.0100e8c4
push 0x92
call fcn.0100ec7a
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100e8c4
xor esi, esi
jmp 0x1006a7c
lea eax, [ebp - 0x6f4]
push eax
push dword [ebp - 0x6ec]
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
test eax, eax
je 0x10069cf
push 0
lea eax, [ebp - 0x6f0]
push eax
push esi
lea eax, [ebp - 0x6f4]
push eax
push dword [ebp - 0x708]
call ebx
movzx eax, word [ebp - 0x6f4]
push eax
lea eax, [ebp - 0x104]
push 0x1001318
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x6e8]
push eax
push 0x493e1
call fcn.01006727
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
je 0x1006a69
lea eax, [ebp - 0x6e8]
push eax
push 0x493e2
call fcn.01006727
push eax
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x1006a92
xor esi, esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10012a8
add eax, 0x20
push eax
call fcn.0100e8c4
push dword [ebp - 0x700]
push dword [ebp - 0x6ec]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, esi
jmp 0x1006ada
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x10012a8
add eax, 0x20
push eax
call fcn.0100e8c4
push 0x92
call fcn.0100ec7a
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100e8c4
push dword [ebp - 0x700]
push dword [ebp - 0x6ec]
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov eax, dword [ebp - 0x710]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100db46
leave
ret 8