Function at 0x41aed3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, 0xffffffff
mov edi, dword [ebp + 8]
mov al, 0
cld
mov ecx, esi
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov edi, dword [ebp + 0xc]
mov ecx, esi
repne scasb al, byte es:[edi]
not ecx
sub edx, ecx
mov dword [ebp - 0x10], edx
mov edi, 1
cmp edi, dword [0x4664f0]
jge 0x41b183
lea eax, [edi*8]
sub eax, edi
lea ebx, [eax*4]
test byte [ebx + 0x430744], 1
jne 0x41b176
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call sub.msvcrt.dll_strcpy
mov eax, dword [ebx + 0x43074c]
cmp byte [eax], 0
je 0x41b08b
mov eax, dword [ebx + 0x430748]
cmp byte [eax], 0
je 0x41b08b
test byte [ebx + 0x430744], 4
je 0x41af75
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
jmp 0x41afbe
lea eax, [edi*8]
sub eax, edi
mov edx, dword [ebp + 0xc]
test byte [eax*4 + 0x430744], 2
je 0x41af90
mov edx, 0x452870
mov dword [esp + 0xc], edx
lea eax, [edi*8]
sub eax, edi
mov eax, dword [eax*4 + 0x430748]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042c971
mov dword [esp + 4], 4
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call sub.msvcrt.dll__access
test eax, eax
jne 0x41b176
lea eax, [edi*8]
sub eax, edi
shl eax, 2
test byte [eax + 0x430744], 4
je 0x41b017
mov eax, dword [eax + 0x43074c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042c971
jmp 0x41b048
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
lea eax, [edi*8]
sub eax, edi
mov eax, dword [eax*4 + 0x43074c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042c971
lea eax, [edi*8]
sub eax, edi
test byte [eax*4 + 0x430744], 8
jne 0x41b076
mov dword [esp + 4], 4
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll__access
test eax, eax
jne 0x41b176
lea eax, [edi*8]
sub eax, edi
mov eax, dword [eax*4 + 0x430740]
jmp 0x41b188
test esi, esi
jns 0x41b116
mov dword [esp + 4], 0x8000
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll__open
mov esi, eax
test eax, eax
jns 0x41b0b6
mov eax, 0
jmp 0x41b188
mov dword [esp + 8], 0x103
mov dword [esp + 4], 0x466500
mov dword [esp], eax
call sub.msvcrt.dll__read
mov dword [0x466370], eax
test eax, eax
jg 0x41b0e9
mov dword [esp], esi
call sub.msvcrt.dll__close
mov eax, 0
jmp 0x41b188
mov dword [esp + 4], 0x452992
mov dword [esp], esi
call sub.msvcrt.dll__fdopen
mov dword [0x466360], eax
mov dword [esp], esi
call sub.msvcrt.dll__close
cmp dword [0x466360], 0
jne 0x41b116
mov eax, 0
jmp 0x41b188
lea eax, [edi*8]
sub eax, edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call dword [eax*4 + 0x430750]
mov ebx, eax
test eax, eax
je 0x41b156
mov eax, dword [0x466360]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, ebx
jmp 0x41b188
cmp dword [0x466360], 0
je 0x41b176
mov eax, dword [0x466360]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [0x466360], 0
inc edi
cmp edi, dword [0x4664f0]
jl 0x41af0e
mov eax, 0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret