Function at 0x100d0280
Capabilities:
Create pipe

Disassembly:
push 0x24
push 0x100ffdf0
call fcn.1005d010
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100d02cf
call fcn.1005df5c
test eax, eax
jne 0x100d02a3
mov eax, 0x1010eac4
jmp 0x100d02a6
add eax, 0x14
and dword [eax], 0
call fcn.1005df5c
test eax, eax
jne 0x100d02b9
mov eax, 0x1010eac0
jmp 0x100d02bc
add eax, 0x10
mov dword [eax], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x100d056a
or edi, 0xffffffff
mov dword [eax + 4], edi
mov dword [eax], edi
mov ecx, dword [ebp + 0x10]
test ecx, 0xffff3f7f
je 0x100d031d
call fcn.1005df5c
test eax, eax
jne 0x100d02f2
mov eax, 0x1010eac4
jmp 0x100d02f5
add eax, 0x14
and dword [eax], 0
call fcn.1005df5c
test eax, eax
jne 0x100d0308
mov eax, 0x1010eac0
jmp 0x100d030b
add eax, 0x10
mov dword [eax], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
mov eax, edi
jmp 0x100d056a
mov eax, ecx
mov edx, 0xc000
and eax, edx
cmp eax, edx
je 0x100d02e2
mov dword [ebp - 0x34], 0xc
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov al, cl
not al
movzx eax, al
shr eax, 7
mov dword [ebp - 0x2c], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreatePipe]
test eax, eax
jne 0x100d036b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1003779a
jmp 0x100d0316
call fcn.1003727e
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
jne 0x100d03be
call fcn.1005df5c
test eax, eax
jne 0x100d0389
mov eax, 0x1010eac0
jmp 0x100d038c
add eax, 0x10
mov dword [eax], 0x18
call fcn.1005df5c
test eax, eax
jne 0x100d03a2
mov eax, 0x1010eac4
jmp 0x100d03a5
add eax, 0x14
mov dword [eax], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x100d0316
mov dword [ebp - 4], ebx
mov edx, esi
sar edx, 6
mov eax, esi
and eax, 0x3f
imul ecx, eax, 0x30
mov eax, dword [edx*4 + 0x1010f130]
mov byte [ecx + eax + 0x28], 0x89
mov eax, dword [edx*4 + 0x1010f130]
mov byte [ecx + eax + 0x29], bl
mov eax, dword [edx*4 + 0x1010f130]
and byte [ecx + eax + 0x2d], 0xfe
mov dword [ebp - 4], 0xfffffffe
call fcn.100d0438
call fcn.1003727e
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp ebx, edi
jne 0x100d0478
mov eax, esi
sar eax, 6
and esi, 0x3f
imul ecx, esi, 0x30
mov eax, dword [eax*4 + 0x1010f130]
mov byte [eax + ecx + 0x28], 0
call fcn.1005df5c
test eax, eax
jne 0x100d0454
mov eax, 0x1010eac0
jmp 0x100d0457
add eax, 0x10
mov dword [eax], 0x18
call fcn.1005df5c
test eax, eax
jne 0x100d046d
mov eax, 0x1010eac4
jmp 0x100d0470
add eax, 0x14
and dword [eax], 0
jmp 0x100d03a7
mov dword [ebp - 4], 1
mov edx, ebx
sar edx, 6
mov eax, ebx
and eax, 0x3f
imul ecx, eax, 0x30
mov eax, dword [edx*4 + 0x1010f130]
mov byte [ecx + eax + 0x28], 0x89
mov eax, dword [edx*4 + 0x1010f130]
mov byte [ecx + eax + 0x29], 0
mov eax, dword [edx*4 + 0x1010f130]
and byte [ecx + eax + 0x2d], 0xfe
mov dword [ebp - 4], 0xfffffffe
call fcn.100d0576
call fcn.10028920
lea eax, [eax*4 + 0x1010f390]
mov ecx, dword [eax]
mov edx, 0x8000
mov eax, dword [ebp + 0x10]
test edx, eax
jne 0x100d04e1
test eax, 0x4000
jne 0x100d0516
cmp ecx, edx
jne 0x100d0516
mov edx, esi
sar edx, 6
mov eax, esi
and eax, 0x3f
imul ecx, eax, 0x30
mov eax, dword [edx*4 + 0x1010f130]
and byte [eax + ecx + 0x28], 0x7f
mov edx, ebx
sar edx, 6
mov eax, ebx
and eax, 0x3f
imul ecx, eax, 0x30
mov eax, dword [edx*4 + 0x1010f130]
and byte [eax + ecx + 0x28], 0x7f
mov eax, dword [ebp + 0x10]
test al, al
jns 0x100d054c
mov edx, esi
sar edx, 6
mov eax, esi
and eax, 0x3f
imul ecx, eax, 0x30
mov eax, dword [edx*4 + 0x1010f130]
or byte [eax + ecx + 0x28], 0x10
mov edx, ebx
sar edx, 6
mov eax, ebx
and eax, 0x3f
imul ecx, eax, 0x30
mov eax, dword [edx*4 + 0x1010f130]
or byte [eax + ecx + 0x28], 0x10
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.1003764d
mov edx, dword [ebp - 0x20]
mov ecx, ebx
call fcn.1003764d
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], ebx
xor eax, eax
call fcn.1005d056
ret