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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10ac
call fcn.0051fea0
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x10a8], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], 1
cmp byte [esp + 0x13], 0
jne 0x41d39c
cmp dword [esi + 0x28], 0x10
jb 0x41d36e
mov eax, dword [esi + 0x14]
jmp 0x41d371
lea eax, [esi + 0x14]
push 0
push 0xbb8
push 0x1000
push 0x1000
push 0xff
push 6
push SysStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x41d35c
mov eax, dword [esi]
push 0
push eax
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41d3c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x41d57b
push 0x1000
lea ecx, [esp + 0xb4]
push 0
push ecx
call fcn.0050e6a0
mov ecx, dword [esi]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
push 0x1000
lea eax, [esp + 0xbc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d403
cmp dword [esp + 0x18], eax
je 0x41d57b
lea edx, [esp + 0xb0]
push str.type:
push edx
call fcn.0050b480
mov edi, eax
lea eax, [esp + 0xb8]
push str._data:
push eax
add edi, 5
call fcn.0050b480
push 0x3f
lea ecx, [esp + 0x45]
mov ebx, eax
push 0
push ecx
lea esi, [ebx + 6]
mov byte [esp + 0x4c], 0
call fcn.0050e6a0
add esp, 0x1c
sub ebx, edi
push ebx
lea edx, [esp + 0x34]
push edi
push edx
call fcn.00510c60
lea eax, [esp + 0x3c]
add esp, 0xc
push eax
call fcn.0050aa76
add esp, 4
push str.hwnd
push esi
mov dword [esp + 0x24], eax
call fcn.0050b480
mov edi, eax
push str._para
push esi
add edi, 6
call fcn.0050b480
push 0x3f
lea ecx, [esp + 0x85]
push 0
push ecx
mov ebx, eax
mov byte [esp + 0x8c], 0
call fcn.0050e6a0
add esp, 0x1c
sub ebx, edi
push ebx
lea edx, [esp + 0x74]
push edi
push edx
call fcn.00510c60
lea eax, [esp + 0x7c]
add esp, 0xc
push eax
call fcn.0050aa76
mov dword [esp + 0x24], eax
mov eax, esi
add esp, 4
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41d4d0
sub eax, ecx
inc eax
push eax
call fcn.005095f9
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d4f0
sub eax, edx
inc eax
push eax
push 0
push edi
call fcn.0050e6a0
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
jmp 0x41d510
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41d510
sub eax, ecx
push eax
push esi
push edi
call fcn.00510c60
mov esi, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esi + 0x64]
push eax
call fcn.0041d690
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x6210b4]
mov eax, dword [edx + 4]
push edi
push ecx
push 0x401
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x84]
test eax, eax
je 0x41d3c1
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0xb4]
push edx
call eax
add esp, 8
jmp 0x41d3c1
cmp byte [esi + 0xc], 0
jne 0x41d5a7
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41d35c
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
jmp 0x41d35c
mov ecx, dword [esp + 0x10b4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0050a231
mov esp, ebp
pop ebp
ret