Function at 0x5345f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d06a0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x64a070]
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 0x53469e
mov edi, dword [ebp + 0xc]
nop dword [eax]
cmp byte [esi + 0x39], 0
je 0x53469e
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 0x534671
test ecx, ecx
jne 0x53467b
jmp 0x53468a
cmp dword [ebp - 0x24], 0
je 0x534786
cmp ecx, edi
je 0x53469e
add dword [ebp - 0x1c], ecx
sub edi, ecx
cmp ebx, 0x64
jg 0x5346bc
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 0x534640
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.005765b2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x656c44]
test eax, eax
je 0x5346eb
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 0x5f8398
push 0x5f8398
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
jmp 0x534713
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x534713
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 0x5f8398
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.00408a10
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00536090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x534764
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.00409510
xor eax, eax
mov dword [ebp - 0x28], 7
mov ecx, esi
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
call fcn.00535f40
xor al, al
jmp 0x5346a0
mov eax, dword [0x656c44]
test eax, eax
je 0x5347b6
push 0x6d
push dword [ebp - 0x18]
push str.Aborting_read_on_pipe__p___errno:__lu
push 0x5f8398
push 0x5f8398
push str.CommBridge
push str.OOBEUtils
push 0x28
call eax
add esp, 0x20
jmp 0x5347df
mov ecx, dword [0x656c48]
test ecx, ecx
je 0x5347df
mov eax, dword [ecx]
push 0x6d
push dword [ebp - 0x18]
push str.Aborting_read_on_pipe__p___errno:__lu
push str.CommBridge
push 0x5f8398
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.00408a10
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00536090
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x534830
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00409510
mov ecx, esi
call fcn.00535f40
xor al, al
jmp 0x5346a0