Function at 0x47dfcd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 8], 0
lea eax, [ebp - 0x40]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push ebx
mov esi, ecx
mov byte [ebp - 1], 1
call fcn.00426710
pop ecx
pop ecx
test eax, eax
jne 0x47e02d
cmp dword [ebp - 0x2c], eax
jne 0x47e038
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov ecx, dword [esi + 0x88]
call fcn.0047acbd
cmp dword [esi + 0x80], ebx
je 0x47e022
mov ecx, dword [esi + 0x84]
call fcn.0047ac30
mov ecx, dword [esi + 0x88]
call fcn.0047ac30
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, ebx
call fcn.0047e7d6
cmp byte [esi + 0x8c], 0
je 0x47e072
mov ecx, dword [esi + 0x84]
call fcn.0047acbd
mov ecx, dword [esi + 0x88]
call fcn.0047acbd
mov eax, dword [esi + 0x80]
mov byte [eax], 1
mov ecx, dword [esi + 0x88]
call fcn.0047ac30
push 0x4a6bf0
push ebx
call fcn.004260ba
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
jne 0x47e0be
push ebx
push str.Muppet:_ERROR:_Unable_to_open__s_for_reading_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x47e0a7
and dword [eax], 0
mov ecx, dword [esi + 0x88]
call fcn.0047acbd
cmp dword [esi + 0x80], 0
jmp 0x47e015
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp + 0x1c]
mov dword [ebp + 0xc], eax
and dword [edi], 0
and dword [ebp - 0x10], 0
push eax
mov ecx, esi
call fcn.0047ed56
mov dword [edi], eax
test eax, eax
jne 0x47e117
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 0x1e
mov eax, dword [ebp + 0xc]
jl 0x47e0d1
cmp dword [edi], 0
jne 0x47e117
push ebx
push str.Muppet:_Unable_to_allocate_memory_to_read__s_to_mem_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0xc
jmp 0x47e0a7
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x47e128
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
cmp dword [ebp + 0x1c], 0
je 0x47e1a3
push 0
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
call fcn.004287ad
add esp, 0xc
test eax, eax
je 0x47e1a3
push dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0x1c]
push str.Muppet:_Unable_to_seek__llu_bytes_into__s_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0x14
push dword [ebp - 0xc]
call fcn.00426699
pop ecx
mov ecx, dword [esi + 0x88]
call fcn.0047acbd
cmp dword [esi + 0x80], ebx
je 0x47e188
mov ecx, dword [esi + 0x84]
call fcn.0047ac30
mov ecx, dword [esi + 0x88]
call fcn.0047ac30
push dword [edi]
mov ecx, esi
call fcn.0047ec57
mov dword [edi], ebx
jmp 0x47e02d
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp + 0x1c]
je 0x47e252
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jae 0x47e252
mov ecx, esi
call fcn.00483af8
test al, al
je 0x47e1db
push dword [edi]
mov ecx, esi
call fcn.0047ec57
test ebx, ebx
je 0x47e1d6
and dword [ebx], 0
xor al, al
mov byte [ebp - 1], al
cmp byte [esi + 0x75], 0
je 0x47e209
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00483af8
test al, al
je 0x47e209
push dword [edi]
mov ecx, esi
call fcn.0047ec57
test ebx, ebx
je 0x47e204
and dword [ebx], 0
xor al, al
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x2c]
mov ecx, 0x1000
sub eax, dword [ebp - 8]
sub eax, dword [ebp + 0x1c]
push dword [ebp - 0xc]
cmp eax, ecx
cmova eax, ecx
push eax
push 1
push dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
call fcn.00426294
mov edx, eax
add esp, 0x10
mov eax, dword [ebp + 0x10]
cmp edx, eax
jne 0x47e28f
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
add ecx, edx
sub eax, dword [ebp + 0x1c]
add dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
cmp ecx, eax
jb 0x47e1b2
mov bl, byte [ebp - 1]
push dword [ebp - 0xc]
call fcn.00426699
pop ecx
mov ecx, dword [esi + 0x88]
call fcn.0047acbd
cmp dword [esi + 0x80], 0
je 0x47e27d
mov ecx, dword [esi + 0x84]
call fcn.0047ac30
mov ecx, dword [esi + 0x88]
call fcn.0047ac30
mov al, bl
jmp 0x47e02f
push dword [ebp + 8]
push dword [ebp - 8]
push eax
push str.Muppet:_Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.00425e56
add eax, 0x40
push eax
call fcn.00426340
add esp, 0x14
mov ecx, esi
push dword [edi]
call fcn.0047ec57
and dword [edi], 0
test ebx, ebx
je 0x47e2bf
and dword [ebx], 0
xor bl, bl
jmp 0x47e255