Function at 0x51cbd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1720
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x60a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
cmp byte [esi + 0x38], al
je 0x51cc7e
mov edi, dword [ebp + 0xc]
nop dword [eax]
cmp byte [esi + 0x39], 0
je 0x51cc7e
add eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push 0
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x14]
mov edx, eax
cmp edx, 0x6d
je 0x51cc51
test ecx, ecx
jne 0x51cc5b
jmp 0x51cc6a
cmp dword [ebp - 0x24], 0
je 0x51cd66
cmp ecx, edi
je 0x51cc7e
add dword [ebp - 0x1c], ecx
sub edi, ecx
cmp ebx, 0x64
jg 0x51cc9c
inc ebx
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [esi + 0x38], 0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jne 0x51cc20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x615408]
test eax, eax
je 0x51cccb
push dword [ebp - 0x18]
push edx
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push 0x5c0ec0
push 0x5c0ec0
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
jmp 0x51ccf3
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51ccf3
push dword [ebp - 0x18]
mov eax, dword [ecx]
push edx
push str.Number_of_retries_to_read_pipe_exhausted_with_last_errno___lu._Aborting_read_on_pipe__p
push str.CommBridge
push 0x5c0ec0
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x1c
push 0x11
xor eax, eax
mov dword [ebp - 0x28], 7
push str.Terminate_channel
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
call fcn.00413c10
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0051e670
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x51cd44
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.00414580
xor eax, eax
mov dword [ebp - 0x28], 7
mov ecx, esi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
call fcn.0051e580
xor al, al
jmp 0x51cc80
mov eax, dword [0x615408]
test eax, eax
je 0x51cd96
push 0x6d
push dword [ebp - 0x18]
push str.Aborting_read_on_pipe__p___errno:__lu
push 0x5c0ec0
push 0x5c0ec0
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
jmp 0x51cdbf
mov ecx, dword [0x61540c]
test ecx, ecx
je 0x51cdbf
mov eax, dword [ecx]
push 0x6d
push dword [ebp - 0x18]
push str.Aborting_read_on_pipe__p___errno:__lu
push str.CommBridge
push 0x5c0ec0
push 0x28
push ecx
call dword [eax + 0x34]
add esp, 0x1c
push 0x11
xor eax, eax
mov dword [ebp - 0x40], 7
push str.Terminate_channel
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
call fcn.00413c10
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0051e670
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x51ce10
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00414580
mov ecx, esi
call fcn.0051e580
xor al, al
jmp 0x51cc80