Function at 0x45a2f0
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], 0x7d0
mov ecx, dword [eax]
lea esi, [esi]
lea ebx, [ebp + 1]
cmp ebx, ecx
jge 0x45a338
mov eax, dword [esp + 0x84]
lea esi, [ebx*4]
mov edx, dword [eax]
mov eax, dword [edx + ebx*4]
cmp byte [eax], 0x40
je 0x45a340
mov ebp, ebx
lea ebx, [ebp + 1]
cmp ebx, ecx
jl 0x45a317
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [esp + 0x18], 1
je 0x45a61a
lea edi, [eax + 1]
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__stati64]
test eax, eax
js 0x45a580
movzx edx, word [esp + 0x36]
and dx, 0xf000
cmp dx, 0x4000
je 0x45a5e7
mov dword [esp], edi
mov dword [esp + 4], 0x4d11f5
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x45a580
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
cmp eax, 0xffffffff
je 0x45a568
mov dword [esp], edi
call sub.msvcrt.dll_ftell
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x45a568
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.msvcrt.dll_fseek
cmp eax, 0xffffffff
je 0x45a568
mov edx, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [esp], eax
mov dword [esp + 0x20], edx
call fcn.00452ed0
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fread
mov edx, dword [esp + 0x20]
cmp edx, eax
mov ecx, eax
je 0x45a442
mov dword [esp], edi
mov dword [esp + 0x20], eax
call sub.msvcrt.dll_ferror
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x45a568
mov eax, dword [esp + 0x1c]
mov byte [eax + ecx], 0
movzx eax, byte [eax]
test al, al
je 0x45a47d
test byte [eax + eax + 0x4d0720], 0x40
je 0x45a590
mov eax, dword [esp + 0x1c]
jmp 0x45a473
test byte [edx + edx + 0x4d0720], 0x40
je 0x45a590
add eax, 1
movzx edx, byte [eax]
test dl, dl
jne 0x45a465
mov dword [esp], 4
call fcn.00452ed0
mov dword [eax], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00459f60
mov ecx, dword [esp + 0x84]
xor edx, edx
mov dword [ecx], eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x80]
mov eax, edx
mov dword [esp + 0x28], edx
add eax, dword [ecx]
lea eax, [eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00452f50
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx]
sub ecx, ebx
add ebx, edx
shl ecx, 2
mov dword [esp + 8], ecx
lea ecx, [eax + esi + 4]
lea eax, [eax + ebx*4]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
add esi, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x80]
mov eax, dword [eax]
lea eax, [edx + eax - 1]
mov dword [esi], eax
mov dword [esp], ebx
mov ebx, ebp
call sub.msvcrt.dll_free
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], edi
mov ebp, ebx
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
jmp 0x45a310
mov eax, dword [esp + 0x80]
mov ebp, ebx
mov ecx, dword [eax]
jmp 0x45a331
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0045a020
mov edx, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x28], edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00459f60
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
test edx, edx
mov dword [esp + 0x24], eax
mov dword [ecx], eax
je 0x45a62a
mov eax, dword [esp + 0x20]
xor edx, edx
add edx, 1
cmp dword [eax + edx*4], 0
lea ecx, [edx*4]
jne 0x45a5d2
jmp 0x45a4b5
mov eax, dword [esp + 0x84]
mov eax, dword [eax]
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.00467b50
mov eax, dword [edx]
mov dword [esp + 4], str._s:_error:_too_many___files_encountered_n
mov dword [esp + 8], eax
jmp 0x45a5fe
xor ecx, ecx
jmp 0x45a4b5