Function at 0x539e30
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ef58
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.0055e710
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x104c], ecx
mov eax, dword [ebp - 0x104c]
cmp dword [eax + 0x224], 0xffffffff
je 0x539e89
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x104c]
mov edx, dword [ecx + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1000
push 0
lea eax, [ebp - 0x1010]
push eax
call fcn.0055e3d0
add esp, 0xc
mov dword [ebp - 0x1014], 0
push 0
push 0
push 0x1000
push 0x1000
push 0xff
push 6
push 0x40000001
push str..pipeADHelperDownPipe
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x1044], eax
cmp dword [ebp - 0x1044], 0xffffffff
jne 0x539ee2
jmp 0x53a0a8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x1048], eax
cmp dword [ebp - 0x1048], 0xffffffff
jne 0x539f04
jmp 0x53a0a8
push 0x14
push 0
lea ecx, [ebp - 0x1040]
push ecx
call fcn.0055e3d0
add esp, 0xc
mov edx, dword [ebp - 0x1048]
mov dword [ebp - 0x1030], edx
lea eax, [ebp - 0x1040]
push eax
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x1054], eax
cmp dword [ebp - 0x1054], 0
je 0x539f65
mov edx, dword [ebp - 0x1048]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x53a0a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x105c], eax
mov ecx, dword [ebp - 0x105c]
mov dword [ebp - 0x1050], ecx
cmp dword [ebp - 0x1050], 0x3e5
je 0x539f8b
jmp 0x539f8d
jmp 0x539fa7
mov edx, dword [ebp - 0x1048]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x493e0
mov ecx, dword [ebp - 0x1048]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1058], eax
mov edx, dword [ebp - 0x1058]
mov dword [ebp - 0x1060], edx
cmp dword [ebp - 0x1060], 0
je 0x539fd9
jmp 0x53a05c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp - 0x1044]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53a040
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x102c]
call fcn.004e8fb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x102c]
push ecx
mov ecx, dword [ebp - 0x104c]
call fcn.00535ff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
call fcn.004e90c0
jmp 0x53a040
mov edx, dword [ebp - 0x1044]
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [ebp - 0x1048]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x53a076
mov ecx, dword [ebp - 0x1044]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1048]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x104c]
cmp dword [eax + 0x224], 0xffffffff
je 0x53a0a8
mov ecx, dword [ebp - 0x104c]
mov edx, dword [ecx + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x104c]
mov dword [eax + 0x224], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret