Function at 0x46e480
Capabilities:
Connect pipe
Create pipe
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x630f8e
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x6cd400]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
mov eax, dword [0x6cd400]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0
mov ecx, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.0040d520
mov dword [esp + 0x34], eax
mov dword [esp + 0x488], 4
lea eax, [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.0040d520
mov dword [esp + 0x3c], eax
mov dword [esp + 0x488], 0xa
add esi, 8
mov dword [esp + 0x14], esi
cmp dword [esi + 0x14], 8
jb 0x46e53f
mov eax, dword [esi]
jmp 0x46e541
mov eax, esi
push 0
push 0
push 0x4000
push 0x4000
push 1
push 0
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46e90d
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx]
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x46e5a9
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0x488], 0xb
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x488], 0xa
cmp dword [esi + 0x14], 8
jb 0x46e5b3
mov eax, dword [esi]
jmp 0x46e5b5
mov eax, esi
push eax
mov eax, dword [0x6d66e8]
push 0x685134
push 0x6d66e8
call dword [eax + 0x14]
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x46e8ae
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x46e615
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0x488], 0xc
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x488], 0xa
mov eax, dword [0x6d66e8]
push 0x6851c0
push 0x6d66e8
call dword [eax + 0x14]
add esp, 8
lea eax, [esp + 0x30]
push 0
push eax
push 0x3ff
lea eax, [esp + 0x80]
push eax
push edi
call ebx
test eax, eax
je 0x46e8ae
lea esp, [esp]
mov eax, dword [esp + 0x30]
cmp eax, 0x400
jae 0x46e908
push dword [esp + 0x14]
lea eax, [esp + eax + 0x78]
xor ecx, ecx
push eax
mov byte [eax], 0
lea eax, [esp + 0x7c]
mov word [esp + 0x4c], cx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
call fcn.0046ed30
mov byte [esp + 0x488], 0xd
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x38]
call fcn.00467b70
push 6
xor eax, eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
push 0x6829c8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
call fcn.00403c30
mov byte [esp + 0x488], 0xe
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x3c]
call fcn.00467f90
mov byte [esp + 0x488], 0x10
cmp dword [esp + 0x2c], 8
jb 0x46e723
push dword [esp + 0x18]
call fcn.004c56c2
add esp, 4
xor eax, eax
cmp dword [esp + 0x70], 8
mov word [esp + 0x18], ax
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
call fcn.005eaf27
mov ecx, dword [case.0x79a990.0]
add esp, 4
mov esi, eax
test cl, 1
jne 0x46e795
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0x488], 0x11
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x488], 0x10
mov ecx, dword [case.0x79a990.0]
mov dword [0x6d6c9c], esi
test cl, 1
jne 0x46e80d
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0x488], 0x12
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x488], 0x10
mov ecx, dword [case.0x79a990.0]
test cl, 1
jne 0x46e80d
or ecx, 1
mov dword [case.0x79a990.0], ecx
mov byte [esp + 0x488], 0x13
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x488], 0x10
push dword [0x6d6c9c]
mov eax, dword [0x6d66e8]
push 0x68520c
push 0x6d66e8
call dword [eax + 0x14]
add esp, 0xc
mov byte [esp + 0x488], 0xd
cmp dword [esp + 0x70], 8
jb 0x46e843
push dword [esp + 0x5c]
call fcn.004c56c2
add esp, 4
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
mov byte [esp + 0x488], 0xa
cmp dword [esp + 0x58], 8
jb 0x46e875
push dword [esp + 0x44]
call fcn.004c56c2
add esp, 4
xor eax, eax
push eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x34]
push eax
push 0x3ff
lea eax, [esp + 0x80]
push eax
push edi
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], 0
call ebx
test eax, eax
jne 0x46e650
mov esi, dword [esp + 0x14]
mov eax, dword [case.0x79a990.0]
test al, 1
jne 0x46e8e7
or eax, 1
mov dword [case.0x79a990.0], eax
mov byte [esp + 0x488], 0x14
push ecx
call fcn.004015a0
call fcn.0042d900
push 0x639710
call fcn.005e9ef6
add esp, 4
mov byte [esp + 0x488], 0xa
mov eax, dword [0x6d66e8]
push 0x685168
push 0x6d66e8
call dword [eax + 0x14]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x46e570
call fcn.005ea84c
mov dword [esp + 0x488], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.00467300
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.005e96ad
mov esp, ebp
pop ebp
ret