Function at 0x407420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
sub esp, 8
push 0x410940
push dword [ebp + 8]
call sub.msvcrt.dll_fopen
add esp, 0x10
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x407635
sub esp, 4
push 2
push 0
push dword [ebp - 0x20]
call sub.msvcrt.dll_fseek
add esp, 0x10
test eax, eax
je 0x40747f
sub esp, 0xc
push str.fseek
call sub.msvcrt.dll_perror
add esp, 0x10
jmp 0x407635
sub esp, 0xc
push dword [ebp - 0x20]
call sub.msvcrt.dll_ftell
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4074b5
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x1f
push 1
push str.WARNING:_Filter_file_is_empty._n
call sub.msvcrt.dll_fwrite
add esp, 0x10
jmp 0x407635
sub esp, 0xc
push dword [ebp - 0x20]
call sub.msvcrt.dll_rewind
add esp, 0x10
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4074fc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
sub esp, 4
push dword [ebp - 0x1c]
push str.ERROR:_unable_to_alloc__ld_bytes_for_filter_file_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x407635
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x18]
call sub.msvcrt.dll_fread
add esp, 0x10
mov edx, eax
mov eax, dword [ebp - 0x1c]
cmp edx, eax
je 0x40753a
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
sub esp, 4
push dword [ebp - 0x1c]
push str.ERROR:_unable_to_read__ld_bytes_from_filter_file_n
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
jmp 0x407635
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [0x413008], 0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
cmp al, 0x2a
jne 0x40756e
mov eax, dword [0x413008]
inc eax
mov dword [0x413008], eax
push 0xa
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call fcn.00401e6d
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
js 0x40759d
mov edx, dword [ebp - 0x18]
inc edx
mov eax, dword [ebp - 8]
lea eax, [edx + eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
inc eax
sub dword [ebp - 0x1c], eax
jmp 0x40755a
mov eax, dword [0x413008]
test eax, eax
jne 0x4075c2
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x36
push 1
push str.WARNING:_no_filters_found._Continuing_without_filters_n
call sub.msvcrt.dll_fwrite
add esp, 0x10
jmp 0x407635
mov eax, dword [0x413008]
sub esp, 8
push 4
push eax
call sub.msvcrt.dll_calloc
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4075fa
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x29
push 1
push str.ERROR:_unable_to_alloc_memory_for_filters
call sub.msvcrt.dll_fwrite
add esp, 0x10
jmp 0x407635
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
jmp 0x407623
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00407047
add esp, 0x10
mov dword [ebp - 0x18], eax
inc dword [ebp - 0xc]
mov eax, dword [0x413008]
cmp dword [ebp - 0xc], eax
jl 0x407609
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
jmp 0x407650
cmp dword [ebp - 0x20], 0
je 0x407649
sub esp, 0xc
push dword [ebp - 0x20]
call sub.msvcrt.dll_fclose
add esp, 0x10
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
leave
ret