Function at 0x4290c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xc], esi
mov byte [ebp - 5], 1
call fcn.0043e98c
pop ecx
pop ecx
test eax, eax
jne 0x429120
cmp dword [ebp - 0x38], esi
jne 0x429128
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebx], esi
lea esi, [edi + 0x460]
push dword [esi]
call fcn.00433545
cmp byte [edi + 0x458], 0
pop ecx
je 0x429118
push dword [edi + 0x45c]
call fcn.00433559
pop ecx
push dword [esi]
call fcn.00433559
pop ecx
xor al, al
pop edi
pop esi
leave
ret 0xc
push dword [ebp + 8]
call fcn.00428b70
cmp byte [edi + 0x464], 0
pop ecx
je 0x429165
push dword [edi + 0x45c]
call fcn.00433545
pop ecx
lea esi, [edi + 0x460]
push dword [esi]
call fcn.00433545
pop ecx
push dword [esi]
mov byte [edi + 0x458], 1
call fcn.00433559
pop ecx
xor esi, esi
push 0x4568a4
push dword [ebp + 8]
call fcn.0043ccfd
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x4291a6
push dword [ebp + 8]
push str.Muppet:_ERROR:_Unable_to_open__s_for_reading_n
call fcn.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, esi
je 0x4290f5
mov dword [eax], esi
jmp 0x4290f5
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 0x4291b9
mov eax, dword [ebp - 0x18]
push eax
mov esi, edi
call fcn.004276ae
mov dword [ebx], eax
test eax, eax
jne 0x4291fe
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jl 0x4291b6
cmp dword [ebx], 0
jne 0x4291fe
push dword [ebp + 8]
push str.Muppet:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
add esp, 0xc
jmp 0x4290f5
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42920f
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x429287
push 0
push esi
push dword [ebp - 0x10]
call fcn.0043d382
add esp, 0xc
test eax, eax
je 0x429287
push dword [ebp + 8]
push 0
push esi
push str.Muppet:_Unable_to_seek__llu_bytes_into__s_n
call fcn.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
add esp, 0x14
push dword [ebp - 0x10]
call fcn.0043d47e
pop ecx
lea esi, [edi + 0x460]
push dword [esi]
call fcn.00433545
cmp byte [edi + 0x458], 0
pop ecx
je 0x429270
push dword [edi + 0x45c]
call fcn.00433559
pop ecx
push dword [esi]
call fcn.00433559
pop ecx
push dword [ebx]
call fcn.0042783b
and dword [ebx], 0
jmp 0x429120
mov eax, dword [ebp - 0x38]
mov ecx, eax
sub ecx, esi
je 0x429325
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
jae 0x429325
cmp byte [edi + 0x451], 0
je 0x4292b4
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x38]
sub eax, esi
sub eax, dword [ebp + 0x10]
mov esi, eax
mov eax, 0x1000
cmp esi, eax
jbe 0x4292c6
mov esi, eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x14]
call fcn.0043cfb4
add esp, 0x10
cmp eax, esi
jne 0x4292f0
add dword [ebp - 0xc], eax
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
sub ecx, dword [ebp + 0x10]
cmp dword [ebp - 0xc], ecx
jb 0x429294
jmp 0x429325
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.0043ca84
add eax, 0x40
push eax
call fcn.0043cfd1
add esp, 0x14
push dword [ebx]
call fcn.0042783b
mov eax, dword [ebp + 0xc]
and dword [ebx], 0
test eax, eax
je 0x429321
and dword [eax], 0
mov byte [ebp - 5], 0
push dword [ebp - 0x10]
call fcn.0043d47e
pop ecx
lea esi, [edi + 0x460]
push dword [esi]
call fcn.00433545
cmp byte [edi + 0x458], 0
pop ecx
je 0x429351
push dword [edi + 0x45c]
call fcn.00433559
pop ecx
push dword [esi]
call fcn.00433559
mov al, byte [ebp - 5]
pop ecx
jmp 0x429122