Function at 0x42793f
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.00442433
pop ecx
pop ecx
test eax, eax
jne 0x42799d
cmp dword [ebp - 0x38], esi
jne 0x4279a6
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebx], esi
lea ebx, [edi + 0x88]
push dword [ebx]
call fcn.00437216
pop ecx
cmp dword [edi + 0x80], esi
je 0x427995
push dword [edi + 0x84]
call fcn.0043722a
pop ecx
push dword [ebx]
call fcn.0043722a
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
call fcn.004273ec
cmp byte [edi + 0x8c], 0
pop ecx
je 0x4279e5
push dword [edi + 0x84]
call fcn.00437216
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.00437216
mov eax, dword [edi + 0x80]
pop ecx
mov byte [eax], 1
push dword [esi]
call fcn.0043722a
pop ecx
xor esi, esi
push 0x459b44
push dword [ebp + 8]
call fcn.00440b2e
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x427a26
push dword [ebp + 8]
push str.Muppet:_ERROR:_Unable_to_open__s_for_reading_n
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, esi
je 0x427973
mov dword [eax], esi
jmp 0x427973
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 0x427a39
mov eax, dword [ebp - 0x18]
push eax
mov esi, edi
call fcn.00425ea4
mov dword [ebx], eax
test eax, eax
jne 0x427aa3
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jl 0x427a36
cmp dword [ebx], 0
jne 0x427aa3
push dword [ebp + 8]
push str.Muppet:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0xc
lea esi, [edi + 0x88]
push dword [esi]
call fcn.00437216
cmp dword [edi + 0x80], 0
pop ecx
je 0x427a9c
push dword [edi + 0x84]
call fcn.0043722a
pop ecx
push dword [esi]
jmp 0x427997
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x427ab4
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x427b2c
push 0
push esi
push dword [ebp - 0x10]
call fcn.004411b3
add esp, 0xc
test eax, eax
je 0x427b2c
push dword [ebp + 8]
push 0
push esi
push str.Muppet:_Unable_to_seek__llu_bytes_into__s_n
call fcn.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0x14
push dword [ebp - 0x10]
call fcn.004412af
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.00437216
cmp dword [edi + 0x80], 0
pop ecx
je 0x427b15
push dword [edi + 0x84]
call fcn.0043722a
pop ecx
push dword [esi]
call fcn.0043722a
pop ecx
push dword [ebx]
call fcn.0042601a
and dword [ebx], 0
jmp 0x42799d
mov eax, dword [ebp - 0x38]
sub eax, esi
je 0x427c04
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
jae 0x427c04
mov esi, edi
call fcn.0041fe71
test al, al
je 0x427b63
push dword [ebx]
call fcn.0042601a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x427b5f
and dword [eax], 0
mov byte [ebp - 5], 0
cmp byte [edi + 0x75], 0
je 0x427b8f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041fe71
test al, al
je 0x427b8f
push dword [ebx]
call fcn.0042601a
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x427b8b
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 0x427ba3
mov esi, eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x14]
call fcn.00440de5
add esp, 0x10
cmp eax, esi
jne 0x427bcf
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 0x427b37
jmp 0x427c04
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.004408b5
add eax, 0x40
push eax
call fcn.00440e02
add esp, 0x14
push dword [ebx]
call fcn.0042601a
mov eax, dword [ebp + 0xc]
and dword [ebx], 0
test eax, eax
je 0x427c00
and dword [eax], 0
mov byte [ebp - 5], 0
push dword [ebp - 0x10]
call fcn.004412af
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.00437216
cmp dword [edi + 0x80], 0
pop ecx
je 0x427c30
push dword [edi + 0x84]
call fcn.0043722a
pop ecx
push dword [esi]
call fcn.0043722a
mov al, byte [ebp - 5]
pop ecx
jmp 0x42799f