Function at 0x4454b0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490938
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0x43414c4c
mov dword [esp + 0x10], eax
je 0x445644
cmp ecx, 0x5247464e
je 0x4455ff
cmp ecx, 0x54485244
jne 0x445554
lea edi, [esp + 0x24]
call fcn.00447480
mov ecx, edi
call fcn.00443fb0
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x44555b
lea edi, [esi + 0x54]
call fcn.00446c70
lea edi, [esi + 0x48]
mov ebx, eax
call fcn.00446c70
mov esi, eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
push eax
call fcn.00443cf0
add esp, 8
xor eax, eax
jmp 0x44574c
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.0040aea0
mov dword [esp + 0x40], 0
mov ebx, dword [eax]
lea edi, [esi + 0x54]
call fcn.00446c70
lea edi, [esi + 0x48]
mov dword [esp + 0x14], eax
call fcn.00446c70
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push 9
push ebx
push 0x5448524e
push edx
call fcn.00443a90
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4455c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push 0xc
call fcn.0044ccf7
mov dword [eax + 4], esi
add esp, 4
push eax
add esi, 0x6c
mov dword [eax], edi
mov dword [eax + 8], esi
push 0x443d20
xor eax, eax
call fcn.00437620
add esp, 8
jmp 0x445747
lea edi, [esi + 0x1c]
call fcn.00446c70
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push 0
push esi
push 0x4446b0
push ecx
push edx
call sub.TCL.dll_Tcl_CreateCommand
add esp, 0x14
lea edi, [esi + 0x54]
call fcn.00446c70
lea edi, [esi + 0x48]
mov ebx, eax
call fcn.00446c70
mov eax, dword [eax]
push 0
push 0
push 0x5247524e
push eax
mov eax, dword [ebx]
jmp 0x44573f
mov ecx, dword [ebp + 0x10]
lea edi, [eax + ecx]
xor ebx, ebx
cmp eax, edi
jae 0x445714
push 0
push eax
add ebx, 1
call fcn.00472c60
add eax, 1
add esp, 8
cmp eax, edi
jb 0x445654
test ebx, ebx
je 0x445714
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044cd22
add esp, 4
xor edi, edi
test ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
jle 0x4456b6
mov ecx, dword [esp + 0x14]
push 0
push eax
mov dword [ecx + edi*4], eax
call fcn.00472c60
add edi, 1
add esp, 8
add eax, 1
cmp edi, ebx
jl 0x44569a
lea edi, [esi + 0x54]
call fcn.00446c70
lea edi, [esi + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edi
call fcn.00446c70
lea edi, [esi + 0x48]
mov dword [esp + 0x18], eax
call fcn.00446c70
mov edi, dword [esp + 0x10]
mov esi, eax
call fcn.00446c70
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push eax
call fcn.004472c0
mov ecx, dword [esi]
add esp, 0x10
push eax
mov eax, dword [edi]
push ecx
call fcn.00444440
add esp, 0xc
jmp 0x445747
lea edi, [esi + 0x54]
call fcn.00446c70
mov ebx, dword [eax]
lea edi, [esi + 0x48]
mov dword [esp + 0x18], 1
call fcn.00446c70
mov eax, dword [eax]
push 4
lea edx, [esp + 0x1c]
push edx
push 0x45525252
push eax
mov eax, ebx
call fcn.00443a90
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046da06
mov esp, ebp
pop ebp
ret 0xc