Function at 0x10041837
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1004188c
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax]
test eax, eax
je 0x10041887
push 0
push 0x357
push 0x109a
push 0x154c
push 0x129a
push 0x129a
push 0x2211
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
jmp 0x10041bc6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 4
jle 0x1004195a
mov dword [ebp - 0x34], 1
jmp 0x1004195e
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [eax]
imul eax, ecx, 0
test eax, eax
jne 0x10041978
xor eax, eax
inc eax
jne 0x10041978
and dword [ebp - 0x5c], 0
jmp 0x1004197f
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0x71d0
je 0x10041991
mov dword [ebp - 0x24], 1
jmp 0x10041995
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
jle 0x100419a8
mov dword [ebp - 0x44], 1
jmp 0x100419ac
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 1
jl 0x100419bb
mov dword [ebp - 0x2c], 1
jmp 0x100419bf
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
jae 0x100419ce
mov dword [ebp - 0x54], 1
jmp 0x100419d2
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
jle 0x100419e5
mov dword [ebp - 0x18], 1
jmp 0x100419e9
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jl 0x100419fc
mov dword [ebp - 0x68], 1
jmp 0x10041a00
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x10041a12
push 0
mov ecx, dword [ebp - 4]
call fcn.100171a9
push 0
mov ecx, dword [ebp - 4]
call fcn.100171a9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xbc], eax
push 0
mov ecx, dword [ebp - 4]
call fcn.100171a9
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
push 0
mov ecx, dword [ebp - 4]
call fcn.100171a9
cmp dword [eax], 0
jne 0x10041a86
mov eax, 0xba54
test eax, eax
jne 0x10041a86
and dword [ebp - 0x4c], 0
jmp 0x10041a8d
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jne 0x10041aa0
mov dword [ebp - 0x10], 1
jmp 0x10041aa4
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0x2aa0
jg 0x10041ac6
mov dword [ebp - 0x1c], 1
jmp 0x10041aca
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x58]
mov esi, dword [eax]
imul esi, dword [ebp - 0x1c]
push 0
mov ecx, dword [ebp - 4]
call fcn.100171a9
cmp esi, dword [eax]
jl 0x10041aef
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10041aef
and dword [ebp - 0x20], 0
jmp 0x10041af6
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jg 0x10041b09
mov dword [ebp - 0x28], 1
jmp 0x10041b0d
and dword [ebp - 0x28], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.100171a9
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jge 0x10041b36
push 0
mov ecx, dword [ebp - 4]
call fcn.100171a9
cmp dword [eax], 0
je 0x10041b36
mov dword [ebp - 0x80], 1
jmp 0x10041b3a
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0x128
jge 0x10041b64
mov dword [ebp - 0x38], 1
jmp 0x10041b68
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0x3a29
jg 0x10041b7a
mov dword [ebp - 0x40], 1
jmp 0x10041b7e
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jl 0x10041b91
mov dword [ebp - 0x48], 1
jmp 0x10041b95
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
add eax, 0x58c0f86f
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x58]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10041bb7
mov dword [ebp - 0x60], 1
jmp 0x10041bbb
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret