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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x19e4
call fcn.0051fea0
mov eax, dword [0x55c4c8]
xor eax, esp
mov dword [esp + 0x19e0], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov byte [esp + 0xf], 1
cmp byte [esp + 0xf], 0
jne 0x41c97c
cmp dword [esi + 0x28], 0x10
jb 0x41c94e
mov eax, dword [esi + 0x14]
jmp 0x41c951
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 0x41c93c
mov eax, dword [esi]
push 0
push eax
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41c9d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x41c9d2
cmp byte [esi + 0xc], 0
jne 0x41ceca
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41c93c
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 0x41c93c
mov esi, edx
push 0x1000
lea ecx, [esp + 0x9ec]
push 0
push ecx
call fcn.0050e6a0
mov ecx, dword [esi]
add esp, 0xc
push 0
lea edx, [esp + 0x28]
push edx
push 0x1000
lea eax, [esp + 0x9f4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ca10
cmp dword [esp + 0x24], eax
je 0x41c99d
lea edx, [esp + 0x9e8]
push str.type:
push edx
call fcn.0050b480
mov esi, eax
lea eax, [esp + 0x9f0]
push str._data:
push eax
add esi, 5
call fcn.0050b480
push 0x3f
lea ecx, [esp + 0xbd]
mov edi, eax
push 0
push ecx
lea ebx, [edi + 6]
mov byte [esp + 0xc4], 0
call fcn.0050e6a0
add esp, 0x1c
sub edi, esi
push edi
lea edx, [esp + 0xac]
push esi
push edx
call fcn.00510c60
lea eax, [esp + 0xb4]
add esp, 0xc
push eax
call fcn.0050aa76
add esp, 4
push str.hwnd
push ebx
mov dword [esp + 0x20], eax
call fcn.0050b480
mov esi, eax
push str._para
push ebx
add esi, 6
call fcn.0050b480
push 0x3f
lea ecx, [esp + 0x7d]
push 0
push ecx
mov edi, eax
mov byte [esp + 0x84], 0
call fcn.0050e6a0
add esp, 0x1c
mov edx, edi
sub edx, esi
push edx
lea eax, [esp + 0x6c]
push esi
push eax
call fcn.00510c60
lea ecx, [esp + 0x74]
add esp, 0xc
push ecx
call fcn.0050aa76
add esp, 4
push 0x8fe
lea edx, [esp + 0xed]
push 0
push edx
mov esi, eax
mov byte [esp + 0xf4], 0
call fcn.0050e6a0
add esp, 0xc
test edi, edi
je 0x41cb1a
add edi, 7
lea ecx, [esp + 0xe8]
sub ecx, edi
lea esp, [esp]
mov al, byte [edi]
mov byte [ecx + edi], al
inc edi
test al, al
jne 0x41cb10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x84]
mov edx, dword [ecx]
mov edi, dword [eax + 0x70]
xor ebx, ebx
add eax, 0x70
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x5c], ecx
test edi, edi
je 0x41cb47
cmp edi, eax
je 0x41cb4c
call fcn.0050a630
mov edx, dword [esp + 0x20]
cmp edx, dword [esp + 0x5c]
je 0x41cbb4
test edi, edi
jne 0x41cbac
call fcn.0050a630
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0x14]
jne 0x41cb6f
call fcn.0050a630
mov edx, dword [esp + 0x20]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x41ceca
cmp dword [ebx + 0xc], esi
je 0x41cbb4
test edi, edi
jne 0x41cbb0
call fcn.0050a630
xor eax, eax
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x14]
jne 0x41cb9c
call fcn.0050a630
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
jmp 0x41cb36
mov eax, dword [edi]
jmp 0x41cb61
mov eax, dword [edi]
jmp 0x41cb8e
mov eax, dword [esp + 0x18]
lea ecx, [eax - 0xbd1]
cmp ecx, 0xa
ja case.0x41cbc7.3031
jmp dword [ecx*4 + 0x41cee4]
mov edx, dword [0x6222c4]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [0x6222c4], esi
je case.0x41cbc7.3031
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x48]
push 0x297
sub eax, 0x63
push eax
sub ecx, 2
push ecx
push 0x63
push 1
push 1
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.0x41cbc7.3031
cmp dword [0x6222c4], esi
je case.0x41cbc7.3031
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x38]
call fcn.0041c770
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
add esp, 0xc
push 0x250
push edi
push ebx
push edx
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push str.Shell_Embedding
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je case.0x41cbc7.3031
push 0x250
push edi
push ebx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push str.Shell_DocObject_View
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je case.0x41cbc7.3031
push 0x250
push edi
push ebx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.0x41cbc7.3031
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xf0]
push eax
lea edx, [esp + 0x40]
lea ecx, [esp + 0x34]
call fcn.0041c770
add esp, 0xc
cmp dword [0x6222c4], esi
je case.0x41cbc7.3031
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push 0x214
push edi
push ebx
push ecx
push edx
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push str.Shell_Embedding
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je case.0x41cbc7.3031
push 0x214
push edi
push ebx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push str.Shell_DocObject_View
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowExA]
test eax, eax
je case.0x41cbc7.3031
push 0x214
push edi
push ebx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.0x41cbc7.3031
push 0
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x41cbc7.3031
lea eax, [esp + 0xe8]
push 0x534a5c
push eax
call fcn.0050b480
mov edi, eax
add esp, 8
test edi, edi
je 0x41cde9
mov ecx, dword [ebx + 0x18]
push 0x8ff
add ecx, 0x126c
push 0
push ecx
call fcn.0050e6a0
mov eax, dword [ebx + 0x18]
add esp, 0xc
lea edx, [edi + 0xd]
add eax, 0x126c
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x41cdc8
mov edx, dword [esp + 0x18]
push str.about:blank
push ebx
push edx
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x41cbc7.3031
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xe8]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x41cbc7.3031
push 0
push 0
push 0xbd8
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x41cbc7.3031
push edx
push edi
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x68]
push edx
call fcn.0041cfa0
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x10]
or edi, 0xffffffff
add dword [eax + 0x8c], edi
mov dword [ebx + 0x1244], 1
cmp dword [eax + 0x8c], 0
jne case.0x41cbc7.3031
cmp dword [eax + 0x88], 0
jne case.0x41cbc7.3031
mov esi, eax
mov eax, dword [esi]
mov byte [esi + 0xc], 1
cmp eax, edi
je 0x41ce6f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x41ce80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0x4201e0
push 0
push 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x64]
test eax, eax
je 0x41c9d0
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x9ec]
push edx
call eax
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x41c9d2
mov ecx, dword [esp + 0x19ec]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0050a231
mov esp, ebp
pop ebp
ret