Function at 0x42c321
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.004472e3
pop ecx
pop ecx
test eax, eax
jne 0x42c37f
cmp dword [ebp - 0x38], esi
jne 0x42c388
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov dword [ebx], esi
lea ebx, [edi + 0x88]
push dword [ebx]
call fcn.0043c122
pop ecx
cmp dword [edi + 0x80], esi
je 0x42c377
push dword [edi + 0x84]
call fcn.0043c136
pop ecx
push dword [ebx]
call fcn.0043c136
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp + 8]
call fcn.0042bdce
cmp byte [edi + 0x8c], 0
pop ecx
je 0x42c3c7
push dword [edi + 0x84]
call fcn.0043c122
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043c122
mov eax, dword [edi + 0x80]
pop ecx
mov byte [eax], 1
push dword [esi]
call fcn.0043c136
pop ecx
xor esi, esi
push 0x45eb14
push dword [ebp + 8]
call fcn.004459de
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x42c408
push dword [ebp + 8]
push str.Muppet:_ERROR:_Unable_to_open__s_for_reading_n
call fcn.00445765
add eax, 0x40
push eax
call fcn.00445cb2
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, esi
je 0x42c355
mov dword [eax], esi
jmp 0x42c355
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 0x42c41b
mov eax, dword [ebp - 0x18]
push eax
mov esi, edi
call fcn.0042a886
mov dword [ebx], eax
test eax, eax
jne 0x42c485
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jl 0x42c418
cmp dword [ebx], 0
jne 0x42c485
push dword [ebp + 8]
push str.Muppet:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.00445765
add eax, 0x40
push eax
call fcn.00445cb2
add esp, 0xc
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043c122
cmp dword [edi + 0x80], 0
pop ecx
je 0x42c47e
push dword [edi + 0x84]
call fcn.0043c136
pop ecx
push dword [esi]
jmp 0x42c379
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42c496
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42c50e
push 0
push esi
push dword [ebp - 0x10]
call fcn.00446063
add esp, 0xc
test eax, eax
je 0x42c50e
push dword [ebp + 8]
push 0
push esi
push str.Muppet:_Unable_to_seek__llu_bytes_into__s_n
call fcn.00445765
add eax, 0x40
push eax
call fcn.00445cb2
add esp, 0x14
push dword [ebp - 0x10]
call fcn.0044615f
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043c122
cmp dword [edi + 0x80], 0
pop ecx
je 0x42c4f7
push dword [edi + 0x84]
call fcn.0043c136
pop ecx
push dword [esi]
call fcn.0043c136
pop ecx
push dword [ebx]
call fcn.0042a9fc
and dword [ebx], 0
jmp 0x42c37f
mov eax, dword [ebp - 0x38]
sub eax, esi
je 0x42c5e6
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
jae 0x42c5e6
mov esi, edi
call fcn.00424690
test al, al
je 0x42c545
push dword [ebx]
call fcn.0042a9fc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42c541
and dword [eax], 0
mov byte [ebp - 5], 0
cmp byte [edi + 0x75], 0
je 0x42c571
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00424690
test al, al
je 0x42c571
push dword [ebx]
call fcn.0042a9fc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42c56d
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 0x42c585
mov esi, eax
push dword [ebp - 0x10]
push esi
push 1
push dword [ebp - 0x14]
call fcn.00445c95
add esp, 0x10
cmp eax, esi
jne 0x42c5b1
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 0x42c519
jmp 0x42c5e6
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.00445765
add eax, 0x40
push eax
call fcn.00445cb2
add esp, 0x14
push dword [ebx]
call fcn.0042a9fc
mov eax, dword [ebp + 0xc]
and dword [ebx], 0
test eax, eax
je 0x42c5e2
and dword [eax], 0
mov byte [ebp - 5], 0
push dword [ebp - 0x10]
call fcn.0044615f
pop ecx
lea esi, [edi + 0x88]
push dword [esi]
call fcn.0043c122
cmp dword [edi + 0x80], 0
pop ecx
je 0x42c612
push dword [edi + 0x84]
call fcn.0043c136
pop ecx
push dword [esi]
call fcn.0043c136
mov al, byte [ebp - 5]
pop ecx
jmp 0x42c381