Function at 0x401d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405160
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x1000
mov dword [ebp - 0x1018], eax
mov ebx, edx
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x101c], esi
push 0
push eax
mov dword [ebp - 0x1014], edi
call sub.VCRUNTIME140.dll_memset
push 0x1004
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1010], 0
push 0
push eax
mov dword [ebp - 0x100c], 0
call sub.VCRUNTIME140.dll_memset
push 0x406190
lea eax, [ebp - 0x1010]
push str.flashback_names.txt
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0x24
test eax, eax
jne 0x401db6
cmp dword [ebp - 0x1010], eax
jne 0x401de4
push str.flashback_names.txt
push str.FileHelper_couldnt_open__s_n
call fcn.00401010
add esp, 8
cmp dword [ebp - 0x1010], 0
jne 0x401de4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004044d2
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
mov ch, 1
mov edx, dword [ebp - 0x100c]
mov esi, dword [ebp - 0x1008]
jne 0x401ecd
nop dword [eax + eax]
test ch, ch
je 0x401ec7
cmp edx, esi
jne 0x401e45
push dword [ebp - 0x1010]
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], 0
push 0x1000
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, dword [ebp - 0x100c]
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x1008], esi
test esi, esi
je 0x401ea2
mov cl, byte [ebp + edx - 0x1004]
mov ah, 0x19
mov al, cl
inc edx
sub al, 0x41
mov dword [ebp - 0x100c], edx
cmp ah, al
mov ch, 1
sbb al, al
and al, 0xe0
add al, 0x20
add cl, al
cmp cl, 0xd
je 0x401e08
mov edi, dword [ebx]
cmp cl, 0xa
je 0x401eae
cmp edi, 0x13f
jae 0x401e98
mov eax, dword [ebp - 0x1014]
mov byte [edi + eax], cl
mov eax, dword [ebp - 0x1018]
mov esi, dword [ebp - 0x1008]
mov edx, dword [ebp - 0x100c]
inc dword [eax]
mov edi, dword [ebx]
lea eax, [edi + 1]
mov dword [ebx], eax
jmp 0x401e08
mov eax, dword [ebp - 0x101c]
xor ch, ch
mov eax, dword [eax]
jmp 0x401ebf
xor eax, eax
test edi, edi
mov edi, dword [ebp - 0x101c]
setne al
add dword [edi], eax
mov eax, dword [edi]
test eax, eax
je 0x401e00
mov edi, dword [ebp - 0x1014]
mov ecx, 0x13f
cmp dword [ebx], ecx
cmovbe ecx, dword [ebx]
mov byte [ecx + edi], 0
xor edi, edi
nop dword [eax]
cmp edx, esi
jne 0x401f1d
push dword [ebp - 0x1010]
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], 0
push 0x1000
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x1008], esi
test esi, esi
je 0x401f8d
mov edx, dword [ebp - 0x100c]
mov al, byte [ebp + edx - 0x1004]
inc edx
mov dword [ebp - 0x100c], edx
cmp al, 0xd
je 0x401ee0
cmp al, 0xa
jne 0x401f60
test edi, edi
je 0x401ee0
cmp dword [ebx], edi
jae 0x401f3d
mov dword [ebx], edi
mov ecx, dword [ebp - 0x1018]
cmp edi, dword [ecx]
jae 0x401f53
mov eax, dword [ebp - 0x1014]
mov byte [eax + edi], 0
mov dword [ecx], edi
mov eax, dword [ebp - 0x101c]
inc dword [eax]
jmp 0x401edb
mov ecx, dword [ebp - 0x1018]
cmp edi, dword [ecx]
jae 0x401f87
mov ecx, dword [ebp - 0x1014]
cmp byte [ecx + edi], al
mov ecx, dword [ebp - 0x1018]
je 0x401f87
mov eax, dword [ebp - 0x1014]
mov byte [eax + edi], 0
mov dword [ecx], edi
inc edi
jmp 0x401ee0
cmp dword [ebx], edi
jae 0x401f93
mov dword [ebx], edi
mov ecx, dword [ebp - 0x101c]
xor eax, eax
test edi, edi
mov bl, 1
setne al
add dword [ecx], eax
mov ecx, dword [ebp - 0x1010]
test ecx, ecx
je 0x401fb8
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004044d2
mov esp, ebp
pop ebp
ret