Function at 0x454c14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x454dfa
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
cmp eax, dword [ebx + 0x10]
jb 0x454c5e
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x454c44
mov dword [esp], eax
call fcn.007678b8
mov eax, dword [ebx + 0x10]
add eax, 0x400
mov dword [esp], eax
call fcn.007678e4
mov dword [ebx + 0x14], eax
add dword [ebx + 0x10], 0x400
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 4]
add esi, 2
mov edi, dword [ecx + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x3c], eax
cmp byte [ebx + 0x18], 0
je 0x454d5e
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x2c]
mov ebx, dword [edx + 0x1c]
neg ebx
and ebx, esi
cmp dword [edx + 0x20], 0
je 0x454ca6
cmp ebx, dword [edx + 0x24]
jne 0x454ca6
mov ebx, 0
jmp 0x454ce4
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x30], 0
je 0x454cbb
cmp ebx, dword [ecx + 0x34]
jne 0x454cbb
mov ebx, 1
jmp 0x454ce4
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x454cc9
cmp ebx, dword [eax + 0x44]
je 0x454cdf
mov edx, dword [ebp - 0x34]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x2c]
mov dword [esp], ecx
call fcn.00454a12
mov ebx, eax
jmp 0x454ce4
mov ebx, 2
cmp ebx, 0xffffffff
je 0x454dfa
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x50], ebx
shl ebx, 4
lea edx, [ebx + eax + 0x20]
mov eax, dword [ebp - 0x34]
sub eax, dword [edx + 4]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x54], eax
mov ebx, dword [edx + 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], ebx
cmp ebx, esi
jbe 0x454d1b
mov dword [ebp - 0x30], esi
sub esi, dword [ebp - 0x30]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x50]
shl edx, 4
mov esi, dword [ecx + edx + 0x28]
add esi, dword [ecx + 0x54]
mov edi, eax
mov ecx, dword [ebp - 0x30]
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
add dword [eax + 0x54], edx
cmp dword [ebp - 0x20], 0
je 0x454e07
add dword [ebp - 0x38], edx
mov esi, edx
add esi, dword [ebp - 0x34]
jmp 0x454c87
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x454d87
mov dword [ebx + 4], 5
mov eax, 0
jmp 0x454dff
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov ecx, dword [ebp - 0x3c]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
cmp edi, eax
je 0x454e0a
mov dword [ebx + 4], 4
mov eax, 0
jmp 0x454dff
mov esi, 0
mov byte [ebp - 0x2c], 0
mov edi, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x14]
mov dl, byte [eax + esi]
cmp dl, 0xfd
jne 0x454de0
inc esi
mov dl, byte [eax + esi]
mov byte [eax + edi], dl
mov byte [ebp - 0x2c], 1
jmp 0x454de9
cmp byte [ebp - 0x2c], 0
je 0x454de9
mov byte [eax + edi], dl
inc esi
inc edi
cmp dword [ecx + 8], esi
ja 0x454dc8
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebx + 0x14]
jmp 0x454dff
mov eax, 0
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
jne 0x454db7
mov edi, 0
jmp 0x454df0