Function at 0x4096a0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470ade
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x491040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xec], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc0], esp
push eax
call fcn.00413080
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
call fcn.00432840
mov edx, eax
mov dword [ebp - 0x38], 0
mov ecx, edx
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409727
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.00416690
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x38]
cmp edx, esi
ja 0x40975c
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], edx
cmova eax, dword [ebp - 0x48]
mov byte [eax + edx], 0
jmp 0x4097a4
mov eax, dword [ebp - 0x34]
mov ecx, edx
sub ecx, esi
sub eax, esi
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x409791
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
push ecx
cmova eax, dword [ebp - 0x48]
add esi, eax
mov dword [ebp - 0x38], edx
push 0
push esi
call fcn.0044d070
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4097a4
push 0
push ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00416a20
push 0
push 1
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0xc0], esp
mov dword [ebp - 0x14], eax
mov dword [eax + 0x24], 0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x70]
call fcn.00415810
mov byte [ebp - 4], 5
add esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa4], esp
xorps xmm0, xmm0
push 4
movups xmmword [ecx], xmm0
push 0x4835ec
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
lea ecx, [edi + 0x40]
call fcn.00412290
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc8], esp
push ecx
push eax
call fcn.00415340
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00412290
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xcc], esp
mov esi, eax
push 4
movups xmmword [ecx], xmm0
push str.en_k
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 8
mov byte [ebp - 4], 5
lea ecx, [edi + 0x40]
call fcn.00412290
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd0], esp
push ecx
push eax
call fcn.00415340
mov byte [ebp - 4], 9
mov byte [ebp - 4], 5
mov ecx, esi
call fcn.00412290
lea ecx, [ebp - 0x60]
push ecx
mov ecx, eax
call fcn.00415240
mov byte [ebp - 4], 0xa
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc4], esp
movups xmmword [ecx], xmm0
push 1
push 0x483604
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.00412290
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0x4835fc
movups xmmword [ebp - 0x24], xmm0
mov esi, eax
mov byte [ebp - 0x24], 0
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x24]
call fcn.00422ae0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.00417b80
mov byte [ebp - 0xb5], al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00414660
cmp byte [ebp - 0xb5], 0
jne 0x409a6d
sub esp, 0x18
mov dword [ebp - 0xa4], 0x483608
mov ecx, esp
mov dword [ebp - 0xc4], esp
xorps xmm0, xmm0
push 1
movups xmmword [ecx], xmm0
push 0x483610
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.00412290
xorps xmm0, xmm0
mov esi, eax
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x24], 0
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x24]
call fcn.00422ae0
mov byte [ebp - 4], 0x11
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.00417b80
mov byte [ebp - 0xb5], al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00414660
cmp byte [ebp - 0xb5], 0
jne 0x409a6d
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xc4], esp
push 1
movups xmmword [ecx], xmm0
push 0x48361c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.00412290
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0x483614
movups xmmword [ebp - 0x24], xmm0
mov esi, eax
mov byte [ebp - 0x24], 0
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 4], 0x14
lea edx, [ebp - 0xa4]
lea ecx, [ebp - 0x24]
call fcn.00422ae0
mov byte [ebp - 4], 0x15
lea edx, [ebp - 0x24]
mov ecx, esi
call fcn.00417b80
mov byte [ebp - 0xb5], al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x24]
call fcn.00414660
cmp byte [ebp - 0xb5], 0
je 0x409cf2
push 0
push 0
push 0
push 0
push 1
push 6
push 3
push 0x483620
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
sub esp, 0x18
mov dword [0x496260], eax
mov ecx, esp
mov dword [ebp - 0xc4], esp
xorps xmm0, xmm0
push 4
movups xmmword [ecx], xmm0
push str.os_c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0x40]
call fcn.00412290
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd0], esp
push ecx
push eax
call fcn.00415340
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.00412290
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xcc], esp
mov esi, eax
push 0x17
movups xmmword [ecx], xmm0
push str.app_bound_encrypted_key
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.00412290
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.00415240
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x14]
push eax
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0xc8], esp
push eax
call fcn.00413080
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0x1a
call fcn.00432840
push eax
lea ecx, [ebp - 0x88]
call fcn.00412b30
mov byte [ebp - 4], 0x1c
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x78]
cmp esi, ecx
ja 0x409b91
cmp dword [ebp - 0x74], 7
lea eax, [ebp - 0x88]
mov dword [ebp - 0x78], esi
cmova eax, dword [ebp - 0x88]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x409ba3
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x88]
push 0
push eax
call fcn.00414120
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x2c]
call fcn.00409550
mov byte [ebp - 4], 0x1d
mov edx, dword [ebp - 0x1c]
shr esi, 1
mov dword [ebp - 0xa4], edx
cmp esi, edx
ja 0x409bd8
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmova eax, dword [ebp - 0x2c]
mov byte [esi + eax], 0
jmp 0x409c29
mov eax, dword [ebp - 0x18]
mov ecx, esi
sub ecx, edx
sub eax, edx
mov dword [ebp - 0x14], ecx
cmp ecx, eax
ja 0x409c16
cmp dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push ecx
push 0
lea eax, [esi + edx]
push eax
call fcn.0044d070
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0xa4]
add eax, esi
mov byte [eax + ecx], 0
jmp 0x409c29
push 0
push ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00416a20
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xc4], esp
push 1
movups xmmword [ecx], xmm0
push 0x48366c
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x1d
mov ecx, edi
call fcn.00412290
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xd0], esp
push ecx
mov ecx, eax
call fcn.00415240
mov byte [ebp - 4], 0x1f
sub esp, 0x18
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xcc], esp
mov ecx, esp
push eax
call fcn.00413080
mov byte [ebp - 4], 0x20
sub esp, 0x18
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xc8], esp
mov ecx, esp
push eax
call fcn.00413080
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 0x1d
call fcn.00429460
add esp, 0x48
mov dword [ebp - 0x14], eax
push dword [0x496260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x2c]
call fcn.00414300
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x88]
call fcn.00414060
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
call fcn.00414300
cmp dword [ebp - 0x4c], 0xf
lea eax, [ebp - 0x60]
cmova eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0x4c], 0xf
lea edx, [ebp - 0x30]
mov esi, dword [edi + 0x88]
lea ecx, [ebp - 0x60]
cmova ecx, dword [ebp - 0x60]
push 0
push 0
push edx
push 0
push 1
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0xc0], eax
call dword [0x4791e8]
call esi
test eax, eax
je 0x409d9c
mov esi, dword [ebp - 0x30]
inc esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x409d9c
cmp dword [ebp - 0x4c], 0xf
lea edx, [ebp - 0x30]
mov esi, dword [edi + 0x88]
lea ecx, [ebp - 0x60]
cmova ecx, dword [ebp - 0x60]
push 0
push 0
push edx
push eax
push 1
push dword [ebp - 0xc0]
push ecx
mov ecx, esi
call dword [0x4791e8]
call esi
mov ecx, dword [ebp - 0xa4]
test eax, eax
jne 0x409def
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.00414300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
push dword [ebp - 0x70]
call fcn.00414660
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00414300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00414300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004347ab
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp - 0x30]
add ecx, 5
mov esi, dword [edi + 0x8c]
sub eax, 5
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xac]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb0], ecx
push eax
mov ecx, esi
movlpd qword [ebp - 0xac], xmm0
call dword [0x4791e8]
call esi
test eax, eax
jne 0x409e49
push dword [ebp - 0xa4]
jmp 0x409d8d
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xc4], esp
push 1
movups xmmword [ecx], xmm0
push 0x483678
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0x26
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.00412290
push ecx
push eax
lea ecx, [ebp - 0x104]
call fcn.00415340
mov ecx, eax
mov byte [ebp - 4], 0x28
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 4
jb 0x409ec2
lea eax, [edx + 4]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0xf
jbe 0x409eb4
mov eax, dword [ecx]
mov dword [eax + edx], 0x79656b5c
mov byte [eax + edx + 4], 0
jmp 0x409edf
push 4
push str.key
mov byte [ebp - 0xc0], 0
push dword [ebp - 0xc0]
push 4
call fcn.00416b80
mov ecx, eax
movups xmm1, xmmword [ecx]
mov dword [ebp - 0xd8], 0
lea edx, [ebp - 0xe8]
mov dword [ebp - 0xd4], 0
movups xmmword [ebp - 0xe8], xmm1
push ecx
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0xd8], xmm0
cmp dword [ebp - 0xd4], 0xf
movd eax, xmm1
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
cmova edx, eax
mov ecx, dword [edi + 0x80]
mov dword [ebp - 0xbc], 2
call fcn.004056c0
mov esi, 2
add esp, 4
mov dword [ebp - 0xbc], esi
and esi, 0xfffffffd
mov dword [ebp - 0xbc], esi
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0xe8]
call fcn.00414300
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104]
call fcn.00414300
push dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
mov ecx, dword [edi + 0x80]
call fcn.004060c0
mov ecx, dword [edi + 0x80]
call fcn.00405c70
sub esp, 0x14
xorps xmm0, xmm0
mov ecx, esp
mov dword [ebp - 0xc4], esp
push 1
movups xmmword [ecx], xmm0
push 0x483684
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00416690
mov byte [ebp - 4], 0x29
mov byte [ebp - 4], 0xa
mov ecx, edi
call fcn.00412290
push ecx
push eax
lea ecx, [ebp - 0x104]
call fcn.00415340
mov edi, eax
mov byte [ebp - 4], 0x2b
mov edx, dword [edi + 0x14]
mov eax, edx
mov ecx, dword [edi + 0x10]
sub eax, ecx
cmp eax, 5
jb 0x40a026
lea eax, [ecx + 5]
mov dword [edi + 0x10], eax
mov eax, edi
cmp edx, 0xf
jbe 0x40a007
mov eax, dword [edi]
push 5
lea esi, [eax + ecx]
push str.1key
push esi
call fcn.0044d210
mov byte [esi + 5], 0
add esp, 0xc
mov esi, dword [ebp - 0xbc]
jmp 0x40a045
push 5
push str.1key
mov byte [ebp - 0xc0], 0
mov ecx, edi
push dword [ebp - 0xc0]
push 5
call fcn.00416b80
mov edi, eax
movups xmm1, xmmword [edi]
or esi, 4
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
lea edx, [ebp - 0xe8]
movups xmmword [ebp - 0xe8], xmm1
push ecx
movq xmm0, qword [edi + 0x10]
mov dword [ebp - 0xbc], esi
mov esi, dword [ebp - 0xec]
movq qword [ebp - 0xd8], xmm0
cmp dword [ebp - 0xd4], 0xf
movd eax, xmm1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmova edx, eax
mov ecx, dword [esi + 0x80]
call fcn.004056c0
and dword [ebp - 0xbc], 0xfffffffb
add esp, 4
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0xe8]
call fcn.00414300
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104]
call fcn.00414300
mov edx, dword [ebp - 0x14]
mov ecx, dword [esi + 0x80]
push 0x20
call fcn.004060c0
mov ecx, dword [esi + 0x80]
add esp, 4
call fcn.00405c70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x60]
call fcn.00414300
jmp 0x409da8