Function at 0x1004798a
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0xa5d6c05b
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x14], ebx
inc ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], 0xfffffffd
jle 0x10047b24
mov dword [ebp - 0x14], 0x7b844a75
mov dword [ebp - 0x10], 0x97e7c14a
mov dword [ebp - 0x10], ebx
jmp 0x100479d4
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x3c], 0x91c84132
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
jl 0x100479c6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], ebx
jne 0x100479ec
mov eax, ebx
cmp dword [ebp - 0x34], ebx
je 0x100479ee
mov eax, ecx
cmp eax, dword [ebp - 0x14]
jg 0x10047a8b
cmp dword [ebp - 0x14], ebx
jne 0x10047a8b
mov dword [ebp - 8], 0x64dbb9a2
xor edx, edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, 0x8c4f412f
add ecx, eax
mov eax, dword [ebp - 8]
cmp ecx, eax
mov eax, dword [ebp - 0x10]
setne dl
xor ecx, ecx
cmp eax, edx
mov eax, dword [ebp - 0x10]
setl cl
xor edx, edx
cmp ecx, 1
setg dl
xor ecx, ecx
cmp edx, eax
setg cl
cmp ecx, 0x2628f0fc
jne 0x10047a4f
cmp dword [ebp - 8], ebx
je 0x10047a4f
xor ecx, ecx
inc ecx
jmp 0x10047a51
mov ecx, ebx
xor eax, eax
cmp ecx, 0x4d864b91
setl al
imul eax, eax, 0x20f0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
mov dword [ebp - 8], ecx
je 0x10047a81
cmp dword [ebp - 8], ebx
je 0x10047a81
xor eax, eax
inc eax
jmp 0x10047a83
mov eax, ebx
mov dword [ebp - 0x10], eax
jmp 0x10047b14
mov dword [ebp - 8], 0xfffffff7
mov dword [ebp - 8], 0x42ea6ae2
mov dword [ebp - 8], ebx
jmp 0x10047aa8
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x1c], ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x10047a9e
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10047ac4
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [ebp - 0x18]
dec eax
je 0x10047afb
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
mov eax, dword [ebp - 0x10]
setg dl
sub edx, 0xf57f54ab
neg edx
sbb edx, edx
inc edx
sub eax, edx
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
je 0x10047afb
xor eax, eax
inc eax
jmp 0x10047afd
mov eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x34]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xfffffffd
push 1
pop ecx
jg 0x100479b3
push esi
push ecx
call fcn.10041a75
mov dword [ebp - 0x10], 0x68206240
mov dword [ebp - 0x14], 0xfffffffe
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x14], ebx
pop ecx
mov dword [ebp - 0xc], 0x6fe6d39c
pop ecx
mov dword [ebp - 0x14], ebx
jmp 0x10047b5f
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x24], 0x673e7ed6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x10047b51
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10047b93
push ebx
push 0x2385
push 0x417
push 0x39d
push 0x1c76
push 0x189f
push 0x24ff
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [ebp - 0x10], 0xfffffff7
jmp 0x10047bc9
mov dword [ebp - 0x14], 0x5e00fe1c
mov dword [ebp - 0x14], 0x7b5ca986
mov dword [ebp - 0x14], ebx
jmp 0x10047bbd
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x2c], 0xfffffff8
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x10047baf
inc dword [ebp - 0xc]
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 5
jg 0x10047b9c
push esi
call fcn.1002d1ea
mov dword [ebp - 0x14], 0xfffffff8
mov esi, eax
mov byte [ebp - 1], bl
pop ecx
cmp byte [ebp - 1], bl
je 0x10047bfa
push 0x12dc
push ebx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x10047c0d
push 0xb13
call dword [sym.imp.USER32.dll_GetKeyboardType]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret