Function at 0x42e016
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0xc], esi
mov byte [ebp - 5], 1
call fcn.00448cec
pop ecx
pop ecx
test eax, eax
jne 0x42e074
cmp dword [ebp - 0x38], esi
jne 0x42e07d
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebx], esi
lea ebx, [edi + 0x88]
push dword [ebx]
call fcn.0043d96d
pop ecx
cmp dword [edi + 0x80], esi
je 0x42e06c
push dword [edi + 0x84]
call fcn.0043d981
pop ecx
push dword [ebx]
call fcn.0043d981
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
call fcn.0042dac3
cmp byte [edi + 0x8c], 0
pop ecx
je 0x42e0bc
push dword [edi + 0x84]
call fcn.0043d96d
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043d96d
mov eax, dword [edi + 0x80]
pop ecx
mov byte [eax], 1
push dword [esi]
call fcn.0043d981
pop ecx
xor esi, esi
push 0x4609fc
push dword [ebp + 8]
call fcn.004471be
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x42e0fd
push dword [ebp + 8]
push str.Muppet:_ERROR:_Unable_to_open__s_for_reading_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, esi
je 0x42e04a
mov dword [eax], esi
jmp 0x42e04a
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp + 0x10]
mov dword [ebx], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
jmp 0x42e110
mov eax, dword [ebp - 0x18]
push eax
mov esi, edi
call fcn.0042c57b
mov dword [ebx], eax
test eax, eax
jne 0x42e17a
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jl 0x42e10d
cmp dword [ebx], 0
jne 0x42e17a
push dword [ebp + 8]
push str.Muppet:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
add esp, 0xc
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043d96d
cmp dword [edi + 0x80], 0
pop ecx
je 0x42e173
push dword [edi + 0x84]
call fcn.0043d981
pop ecx
push dword [esi]
jmp 0x42e06e
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e18b
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42e203
push 0
push esi
push dword [ebp - 0x10]
call fcn.00447843
add esp, 0xc
test eax, eax
je 0x42e203
push dword [ebp + 8]
push 0
push esi
push str.Muppet:_Unable_to_seek__llu_bytes_into__s_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
add esp, 0x14
push dword [ebp - 0x10]
call fcn.0044793f
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043d96d
cmp dword [edi + 0x80], 0
pop ecx
je 0x42e1ec
push dword [edi + 0x84]
call fcn.0043d981
pop ecx
push dword [esi]
call fcn.0043d981
pop ecx
push dword [ebx]
call fcn.0042c6f1
and dword [ebx], 0
jmp 0x42e074
mov eax, dword [ebp - 0x38]
sub eax, esi
je 0x42e2db
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
jae 0x42e2db
mov esi, edi
call fcn.0042638a
test al, al
je 0x42e23a
push dword [ebx]
call fcn.0042c6f1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e236
and dword [eax], 0
mov byte [ebp - 5], 0
cmp byte [edi + 0x75], 0
je 0x42e266
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0042638a
test al, al
je 0x42e266
push dword [ebx]
call fcn.0042c6f1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42e262
and dword [eax], 0
mov byte [ebp - 5], 0
mov esi, dword [ebp - 0x38]
sub esi, dword [ebp - 0xc]
mov eax, 0x1000
sub esi, dword [ebp + 0x10]
cmp esi, eax
jbe 0x42e27a
mov esi, eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x14]
call fcn.00447475
add esp, 0x10
cmp eax, esi
jne 0x42e2a6
add dword [ebp - 0xc], eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp + 0x10]
cmp dword [ebp - 0xc], eax
jb 0x42e20e
jmp 0x42e2db
push dword [ebp + 8]
push dword [ebp - 0xc]
push esi
push str.Muppet:_Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.00446f45
add eax, 0x40
push eax
call fcn.00447492
add esp, 0x14
push dword [ebx]
call fcn.0042c6f1
mov eax, dword [ebp + 0xc]
and dword [ebx], 0
test eax, eax
je 0x42e2d7
and dword [eax], 0
mov byte [ebp - 5], 0
push dword [ebp - 0x10]
call fcn.0044793f
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043d96d
cmp dword [edi + 0x80], 0
pop ecx
je 0x42e307
push dword [edi + 0x84]
call fcn.0043d981
pop ecx
push dword [esi]
call fcn.0043d981
mov al, byte [ebp - 5]
pop ecx
jmp 0x42e076