Function at 0x40e020
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], 0x4af3
mov eax, dword [0x75a400]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0x1c13
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov ecx, dword [0x75a410]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0x319
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x40], 0x222a
xor edx, edx
sub edx, dword [ebp - 0x20]
imul eax, dword [ebp - 0x18], 0
add eax, dword [ebp - 0x4c]
and eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x1c]
and eax, ecx
or edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax - 0x2d16]
sub eax, dword [ebp - 0x18]
or edx, eax
mov dword [ebp - 0x48], edx
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x40]
jbe 0x40e15a
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x24]
jbe 0x40e15a
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + eax - 0x372]
and edx, dword [ebp - 0x38]
and edx, dword [ebp - 0x18]
xor eax, eax
sub eax, dword [ebp - 0x38]
and eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
and eax, ecx
or edx, eax
mov eax, dword [ebp - 4]
add eax, 0x161d
and eax, dword [ebp - 0x44]
and eax, dword [ebp - 0x2c]
movzx ecx, word [ebp - 4]
and eax, ecx
and eax, dword [ebp - 0x44]
or edx, eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 0xfce]
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x40]
add edx, 0x1105
and ecx, edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
imul edx, dword [ebp - 0x1c]
lea eax, [eax + edx - 0x4d43]
and ecx, eax
or ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x40]
or ecx, edx
or ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
je 0x40e213
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x3c]
jb 0x40e213
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 0x1ef3]
sub ecx, dword [ebp - 0x14]
sub ecx, 0x527
sub ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
lea edx, [edx + eax - 0x93f]
and ecx, edx
mov eax, 0x2633
sub eax, dword [ebp - 0x2c]
movzx edx, word [ebp - 0x10]
sub eax, edx
sub eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x28]
lea eax, [eax + edx - 0x2c73]
and ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x2c]
add edx, dword [ebp - 4]
and edx, dword [ebp - 0x3c]
movzx eax, byte [ebp - 0x3c]
imul eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + eax + 0x550]
movzx ecx, word [ebp - 0x38]
add eax, ecx
or edx, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
shl eax, cl
or edx, eax
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp - 4]
sub ecx, 0x2675670
or edx, ecx
mov eax, dword [ebp - 0x14]
and eax, 0x1cd3
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x40]
and eax, ecx
or edx, eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 0x8cf
jb 0x40e28d
mov dword [ebp - 0xc], 0
jmp 0x40e22e
mov edx, dword [ebp - 0xc]
add edx, 0x10
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x20
jae 0x40e273
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
add eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
movzx ecx, byte [ebp - 8]
or eax, ecx
or eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x34]
or eax, edx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
lea ecx, [edx + ecx - 0x42b]
sub ecx, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x48]
or eax, ecx
or eax, dword [ebp - 0x20]
mov word [ebp - 4], ax
jmp 0x40e225
mov dword [ebp - 0x160], 0x114
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0xc], eax
call fcn.004109b0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x44]
ja 0x40e2d4
push 0
push 0
push 0
push 0
push 0x12c
push 0
push 3
push str.ugtnodofaoanuotsgl
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [ebp - 0x10], eax
movzx eax, byte [ebp - 0xc]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x14]
imul ecx, dword [ebp - 0x24], 0x3c5f
add eax, ecx
movzx edx, byte [ebp - 0x20]
mov ecx, 0xf91
sub ecx, edx
add ecx, dword [ebp - 0x38]
or eax, ecx
movzx edx, word [ebp - 0x30]
and edx, dword [ebp - 0x10]
or eax, edx
mov ecx, dword [ebp - 0x48]
imul ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x40]
lea ecx, [edx + ecx + 0xf7e]
mov edx, dword [ebp - 0x30]
imul edx, dword [ebp - 8]
sub ecx, edx
or eax, ecx
mov dword [ebp - 0x34], eax
movzx eax, word [ebp - 8]
mov edx, dword [ebp - 0x18]
sub edx, eax
sub edx, dword [ebp - 0x3c]
add edx, dword [ebp - 8]
movzx eax, byte [ebp - 8]
xor ecx, ecx
sub ecx, eax
mov eax, dword [ebp - 4]
shl eax, cl
and edx, eax
or edx, dword [ebp - 0x10]
or edx, 0x1040
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp - 0x1c]
and ecx, dword [ebp - 0x2c]
or edx, ecx
or edx, dword [ebp - 0x10]
xor eax, eax
sub eax, dword [ebp - 0x10]
or edx, eax
mov ecx, dword [ebp - 0x3c]
add ecx, dword [ebp - 0x24]
or edx, ecx
mov dword [ebp - 0x34], edx
mov esp, ebp
pop ebp
ret