Function at 0x445fb0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x40]
mov byte [eax], 0
mov dword [esp], 0x1000
call fcn.00401ab0
test eax, eax
je 0x4462d7
mov esi, eax
mov ebp, 0x1000
xor ebx, ebx
nop
mov eax, dword [0x54c878]
cmp edi, eax
je 0x4460b0
test eax, eax
je 0x446011
mov edx, dword [0x501360]
sub edx, dword [0x54c874]
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [0x501360], 0x1000
mov dword [0x54c874], 0
mov dword [0x54c878], edi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], 0x54c880
call sub.msvcrt.dll_fread
xor edx, edx
mov dword [0x54c874], eax
cmp eax, edx
jle 0x4462ac
lea ecx, [edx + 1]
movzx edx, byte [edx + 0x54c880]
mov dword [0x501360], ecx
cmp dl, 9
je 0x446160
jg 0x4460d0
cmp dl, 0xff
jne 0x446110
mov byte [esi + ebx], 0
test ebx, ebx
jne 0x446104
mov dword [esp], esi
xor esi, esi
call fcn.00401b10
mov eax, 1
mov edx, dword [esp + 0x44]
mov dword [edx], esi
mov edx, dword [esp + 0x48]
mov dword [edx], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0x501360]
cmp edx, 0xfff
jg 0x44602b
mov eax, dword [0x54c874]
jmp 0x446052
cmp dl, 0xa
je 0x446198
cmp dl, 0xd
jne 0x446110
mov ebp, 0xd
cmp ecx, 0x1000
je 0x4461a9
cmp ecx, eax
jge 0x446100
cmp byte [ecx + 0x54c880], 0xa
je 0x446210
mov byte [esi + ebx], 0
add ebx, 1
xor eax, eax
jmp 0x446095
movsx eax, dl
mov byte [esp + 0x18], dl
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_isprint]
test eax, eax
je 0x44612f
movzx edx, byte [esp + 0x18]
mov byte [esi + ebx], dl
add ebx, 1
cmp ebx, ebp
jl 0x445fe0
add ebp, 0x1000
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.00401b40
test eax, eax
je 0x4462cf
mov esi, eax
jmp 0x445fe0
lea edx, [ebx + 7]
cmp edx, ebp
jge 0x4461e0
mov byte [esi + ebx], 0x20
mov byte [esi + ebx + 1], 0x20
mov byte [esi + ebx + 2], 0x20
mov byte [esi + ebx + 3], 0x20
mov byte [esi + ebx + 4], 0x20
mov byte [esi + ebx + 5], 0x20
mov byte [esi + ebx + 6], 0x20
add ebx, 8
mov byte [esi + edx], 0x20
jmp 0x44612f
mov ebp, 0xa
cmp ecx, 0x1000
jne 0x4460ef
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], 0x54c880
call sub.msvcrt.dll_fread
xor ecx, ecx
mov dword [0x501360], 0
mov dword [0x54c874], eax
jmp 0x4460ef
add ebp, 0x1000
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 0x18], edx
call fcn.00401b40
mov edx, dword [esp + 0x18]
test eax, eax
je 0x4462cf
mov esi, eax
jmp 0x446167
mov edx, dword [0x54c878]
mov dword [esp + 0x1c], edx
lea edx, [ecx + 1]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
cmp edi, edx
je 0x44628e
test edx, edx
je 0x446243
sub ecx, eax
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_fseek
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], 0x54c880
mov dword [0x501360], 0x1000
mov dword [0x54c874], 0
mov dword [0x54c878], edi
call sub.msvcrt.dll_fread
mov dword [0x54c874], eax
test eax, eax
jle 0x4462e5
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
mov dword [0x501360], eax
cmp ebp, 0xd
jne 0x446100
mov eax, dword [esp + 0x4c]
mov byte [eax], 1
jmp 0x446100
mov dword [0x501360], 0x1000
mov dword [0x54c874], 0
mov dword [0x54c878], 0
jmp 0x44607e
mov dword [esp], esi
call fcn.00401b10
xor esi, esi
xor ebx, ebx
mov eax, 2
jmp 0x446095
mov dword [0x54c874], 0
mov dword [0x54c878], 0
mov dword [esp + 0x18], 0x1000
jmp 0x44628e