Function at 0x429300
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.0043ec3c
pop ecx
pop ecx
test eax, eax
jne 0x42935c
cmp dword [ebp - 0x38], esi
jne 0x429364
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebx], esi
lea esi, [edi + 0x468]
push dword [esi]
call fcn.004337f6
cmp byte [edi + 0x460], 0
pop ecx
je 0x429354
push dword [edi + 0x464]
call fcn.0043380a
pop ecx
push dword [esi]
call fcn.0043380a
pop ecx
xor al, al
pop edi
pop esi
leave
ret 0xc
push dword [ebp + 8]
call fcn.00428dac
cmp byte [edi + 0x46c], 0
pop ecx
je 0x4293a1
push dword [edi + 0x464]
call fcn.004337f6
pop ecx
lea esi, [edi + 0x468]
push dword [esi]
call fcn.004337f6
pop ecx
push dword [esi]
mov byte [edi + 0x460], 1
call fcn.0043380a
pop ecx
xor esi, esi
push 0x4568bc
push dword [ebp + 8]
call fcn.0043cfad
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x4293e2
push dword [ebp + 8]
push str.Muppet:_ERROR:_Unable_to_open__s_for_reading_n
call fcn.0043cd34
add eax, 0x40
push eax
call fcn.0043d281
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, esi
je 0x429331
mov dword [eax], esi
jmp 0x429331
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 0x4293f5
mov eax, dword [ebp - 0x18]
push eax
mov esi, edi
call fcn.004278c2
mov dword [ebx], eax
test eax, eax
jne 0x42943a
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jl 0x4293f2
cmp dword [ebx], 0
jne 0x42943a
push dword [ebp + 8]
push str.Muppet:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.0043cd34
add eax, 0x40
push eax
call fcn.0043d281
add esp, 0xc
jmp 0x429331
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42944b
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4294c3
push 0
push esi
push dword [ebp - 0x10]
call fcn.0043d632
add esp, 0xc
test eax, eax
je 0x4294c3
push dword [ebp + 8]
push 0
push esi
push str.Muppet:_Unable_to_seek__llu_bytes_into__s_n
call fcn.0043cd34
add eax, 0x40
push eax
call fcn.0043d281
add esp, 0x14
push dword [ebp - 0x10]
call fcn.0043d72e
pop ecx
lea esi, [edi + 0x468]
push dword [esi]
call fcn.004337f6
cmp byte [edi + 0x460], 0
pop ecx
je 0x4294ac
push dword [edi + 0x464]
call fcn.0043380a
pop ecx
push dword [esi]
call fcn.0043380a
pop ecx
push dword [ebx]
call fcn.00427a4f
and dword [ebx], 0
jmp 0x42935c
mov eax, dword [ebp - 0x38]
mov ecx, eax
sub ecx, esi
je 0x429561
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
jae 0x429561
cmp byte [edi + 0x459], 0
je 0x4294f0
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 0x429502
mov esi, eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x14]
call fcn.0043d264
add esp, 0x10
cmp eax, esi
jne 0x42952c
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 0x4294d0
jmp 0x429561
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.0043cd34
add eax, 0x40
push eax
call fcn.0043d281
add esp, 0x14
push dword [ebx]
call fcn.00427a4f
mov eax, dword [ebp + 0xc]
and dword [ebx], 0
test eax, eax
je 0x42955d
and dword [eax], 0
mov byte [ebp - 5], 0
push dword [ebp - 0x10]
call fcn.0043d72e
pop ecx
lea esi, [edi + 0x468]
push dword [esi]
call fcn.004337f6
cmp byte [edi + 0x460], 0
pop ecx
je 0x42958d
push dword [edi + 0x464]
call fcn.0043380a
pop ecx
push dword [esi]
call fcn.0043380a
mov al, byte [ebp - 5]
pop ecx
jmp 0x42935e