Function at 0x469ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
xor esi, esi
sub esp, 0x6c
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x14], 0x7d0
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
nop
lea esi, [esi]
lea ebx, [esi + 1]
cmp ebx, ecx
jge 0x469f2b
mov esi, esi
lea edi, [edi]
mov edx, dword [ebp]
lea edi, [ebx*4]
mov eax, dword [edx + ebx*4]
cmp byte [eax], 0x40
je 0x469f33
mov esi, ebx
lea ebx, [esi + 1]
cmp ebx, ecx
jl 0x469f10
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [esp + 0x14], 1
je 0x46a21b
lea edx, [eax + 1]
lea eax, [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
mov edx, dword [esp + 0x10]
js 0x46a060
movzx eax, word [esp + 0x36]
and ax, 0xf000
cmp ax, 0x4000
je 0x46a1ee
mov dword [esp + 4], 0x4d6dd5
mov dword [esp], edx
call sub.msvcrt.dll_fopen
test eax, eax
mov dword [esp + 0x10], eax
je 0x46a060
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
cmp eax, 0xffffffff
je 0x46a041
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_ftell
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x46a041
mov eax, dword [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
cmp eax, 0xffffffff
je 0x46a041
mov edx, dword [esp + 0x18]
lea eax, [edx + 1]
mov dword [esp + 0x20], edx
mov dword [esp], eax
call fcn.0046ea40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
call sub.msvcrt.dll_fread
mov edx, dword [esp + 0x20]
mov ecx, eax
cmp edx, eax
je 0x46a074
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x46a070
mov eax, dword [esp + 0x10]
mov esi, ebx
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
jmp 0x469f00
mov eax, dword [esp + 0x80]
mov esi, ebx
mov ecx, dword [eax]
jmp 0x469f24
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov byte [eax + ecx], 0
movzx eax, byte [eax]
test al, al
je 0x46a0b8
test byte [eax + eax + 0x4d7540], 0x40
je 0x46a1a0
mov edx, dword [esp + 0x18]
jmp 0x46a0ae
test byte [eax + eax + 0x4d7540], 0x40
je 0x46a1a0
add edx, 1
movzx eax, byte [edx]
test al, al
jne 0x46a0a0
mov dword [esp], 4
call fcn.0046ea40
mov dword [esp + 0x24], eax
mov dword [eax], 0
mov eax, dword [ebp]
cmp dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jne 0x46a1e5
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00469af0
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [ebp], eax
xor edx, edx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov eax, dword [eax]
lea eax, [edx + eax + 1]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0046eac0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x28]
mov dword [ebp], eax
mov ecx, dword [ecx]
mov dword [esp + 0x20], edx
sub ecx, ebx
add ebx, edx
shl ecx, 2
mov dword [esp + 8], ecx
lea ecx, [eax + edi + 4]
lea eax, [eax + ebx*4]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
add edi, dword [ebp]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x80]
mov eax, dword [eax]
lea eax, [edx + eax - 1]
mov dword [edi], eax
mov dword [esp], ebx
mov ebx, esi
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x46a041
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00469bb0
mov ecx, dword [ebp]
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
je 0x46a22b
mov edx, dword [eax]
test edx, edx
je 0x46a1e5
mov eax, dword [esp + 0x24]
xor edx, edx
lea esi, [esi]
add edx, 1
cmp dword [eax + edx*4], 0
lea ecx, [edx*4]
jne 0x46a1d0
jmp 0x46a0f6
xor ecx, ecx
xor edx, edx
jmp 0x46a0f6
mov eax, dword [ebp]
mov eax, dword [eax]
mov dword [esp + 4], str._s:_error:___file_refers_to_a_directory_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 1
call fcn.0046e9c0
mov eax, dword [edx]
mov dword [esp + 4], str._s:_error:_too_many___files_encountered_n
mov dword [esp + 8], eax
jmp 0x46a1ff
mov eax, dword [esp + 0x24]
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x28], edx
call fcn.00469af0
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov dword [ebp], eax
jmp 0x46a1bf