Function at 0x100c5ad0
Capabilities:
Create pipe

Disassembly:
push 0x24
push 0x100f5a58
call fcn.10068b60
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100c5b1f
call fcn.100287b0
test eax, eax
jne 0x100c5af3
mov eax, 0x101049f8
jmp 0x100c5af6
add eax, 0x14
and dword [eax], 0
call fcn.100287b0
test eax, eax
jne 0x100c5b09
mov eax, 0x101049f4
jmp 0x100c5b0c
add eax, 0x10
mov dword [eax], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
or eax, 0xffffffff
jmp 0x100c5d9c
or edi, 0xffffffff
mov dword [eax + 4], edi
mov dword [eax], edi
mov ecx, dword [ebp + 0x10]
test ecx, 0xffff3f7f
je 0x100c5b6d
call fcn.100287b0
test eax, eax
jne 0x100c5b42
mov eax, 0x101049f8
jmp 0x100c5b45
add eax, 0x14
and dword [eax], 0
call fcn.100287b0
test eax, eax
jne 0x100c5b58
mov eax, 0x101049f4
jmp 0x100c5b5b
add eax, 0x10
mov dword [eax], 0x16
call sym.ucrtbase.dll__invalid_parameter_noinfo
mov eax, edi
jmp 0x100c5d9c
mov eax, ecx
mov edx, 0xc000
and eax, edx
cmp eax, edx
je 0x100c5b32
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 0x100c5bbb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.10042889
jmp 0x100c5b66
call fcn.100417be
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
jne 0x100c5c0e
call fcn.100287b0
test eax, eax
jne 0x100c5bd9
mov eax, 0x101049f4
jmp 0x100c5bdc
add eax, 0x10
mov dword [eax], 0x18
call fcn.100287b0
test eax, eax
jne 0x100c5bf2
mov eax, 0x101049f8
jmp 0x100c5bf5
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 0x100c5b66
mov dword [ebp - 4], ebx
mov ecx, esi
sar ecx, 6
mov eax, esi
and eax, 0x3f
imul edx, eax, 0x38
mov eax, dword [ecx*4 + 0x10105340]
mov word [eax + edx + 0x28], 0x89
and byte [eax + edx + 0x2d], 0xfe
mov dword [ebp - 4], 0xfffffffe
call fcn.100c5c6c
call fcn.100417be
mov dword [ebp - 0x28], eax
cmp eax, edi
jne 0x100c5c88
mov eax, esi
sar eax, 6
and esi, 0x3f
imul ecx, esi, 0x38
mov eax, dword [eax*4 + 0x10105340]
mov byte [eax + ecx + 0x28], bl
jmp 0x100c5bc9
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x28]
mov ecx, edi
sar ecx, 6
mov eax, edi
and eax, 0x3f
imul edx, eax, 0x38
mov eax, dword [ecx*4 + 0x10105340]
mov word [eax + edx + 0x28], 0x89
and byte [eax + edx + 0x2d], 0xfe
mov dword [ebp - 4], 0xfffffffe
call 0x100c5ce1
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
push eax
call sym.ucrtbase.dll__get_fmode
pop ecx
test eax, eax
je 0x100c5cfd
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.ucrtbase.dll__invoke_watson
xor ebx, ebx
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ecx, edi
sar ecx, 6
mov eax, edi
and eax, 0x3f
imul eax, eax, 0x38
add eax, dword [ecx*4 + 0x10105340]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
ret
mov eax, 0x8000
mov ebx, dword [ebp + 0x10]
test eax, ebx
jne 0x100c5d16
test ebx, 0x4000
jne 0x100c5d48
cmp dword [ebp - 0x28], eax
jne 0x100c5d48
mov edx, esi
sar edx, 6
mov eax, esi
and eax, 0x3f
imul ecx, eax, 0x38
mov eax, dword [edx*4 + 0x10105340]
and byte [eax + ecx + 0x28], 0x7f
mov edx, edi
sar edx, 6
mov eax, edi
and eax, 0x3f
imul ecx, eax, 0x38
mov eax, dword [edx*4 + 0x10105340]
and byte [eax + ecx + 0x28], 0x7f
test bl, bl
jns 0x100c5d7e
mov edx, esi
sar edx, 6
mov eax, esi
and eax, 0x3f
imul ecx, eax, 0x38
mov eax, dword [edx*4 + 0x10105340]
or byte [eax + ecx + 0x28], 0x10
mov edx, edi
sar edx, 6
mov eax, edi
and eax, 0x3f
imul ecx, eax, 0x38
mov eax, dword [edx*4 + 0x10105340]
or byte [eax + ecx + 0x28], 0x10
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.10042318
mov edx, dword [ebp - 0x20]
mov ecx, edi
call fcn.10042318
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov dword [eax + 4], edi
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret