Function at 0x422f70
Capabilities:
Create pipe

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492e85
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x40
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0
jg 0x423051
mov edx, dword [edi + 0x1c]
lea ecx, [edi + 0xc]
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 9
jb 0x423237
cmp dword [ecx + 0x14], 8
jb 0x422fcb
mov ecx, dword [ecx]
push edx
push ecx
push 9
push 0x4ad6d4
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.00417460
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push 0
push 0
push 0
push 1
push 4
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [edi + 0x24]
mov esi, eax
cmp esi, ecx
je 0x423017
test ecx, ecx
jle 0x423014
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], esi
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x423051
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423047
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42323c
push edx
push ecx
call fcn.0046d4cf
add esp, 8
call fcn.00403a50
mov esi, eax
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
push eax
push 0x4ad6e8
lea ecx, [ebp - 0x30]
mov word [ebp - 0x30], ax
call fcn.00402f30
mov dword [ebp - 4], 0
cmp dword [esi], 0
jg 0x4230dd
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x4acf2c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi]
mov dword [ebp - 0x14], eax
cmp eax, ecx
je 0x4230bb
test ecx, ecx
jle 0x4230b7
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov ecx, eax
test ecx, ecx
jle 0x4230c8
mov dword [esi + 4], 0
jmp 0x4230dd
sub esp, 0x18
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00402dc0
mov ecx, esi
call fcn.00420a00
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x42311e
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x423114
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423241
push edx
push ecx
call fcn.0046d4cf
add esp, 8
call fcn.00403a50
mov ecx, dword [edi]
xorps xmm0, xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x14], 0
mov edx, dword [eax]
mov ecx, dword [ecx + 4]
movups xmmword [ebp - 0x40], xmm0
cmp edx, 0xffffffff
jne 0x42314b
mov esi, 0xc00000c0
jmp 0x423220
mov eax, dword [ebx + 8]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
push 0x20
lea eax, [ebp - 0x50]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0xc]
push eax
push 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], ecx
push eax
push 0x8005e01c
push edx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x423187
xor esi, esi
jmp 0x42319b
mov eax, dword fs:[0x18]
mov esi, dword [eax + 0xbf4]
test esi, esi
js 0x423220
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push 0x28
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.0046d49f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 1
call fcn.00403a50
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x50]
push ecx
push ecx
lea ecx, [edi + 0xc]
push ecx
push edx
mov ecx, eax
call fcn.00420da0
test eax, eax
js 0x423218
add edi, 4
lea eax, [ebp - 0x3c]
cmp edi, eax
je 0x423218
mov ecx, dword [edi]
mov eax, dword [ebp - 0x3c]
mov edx, dword [edi + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x3c]
call fcn.004236d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.004021f0
call fcn.00472aca
call fcn.00472aca
int3