Function at 0x1011260
Capabilities:
Execute command
Set console window title

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x760
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x758], rax
mov qword [rsp + 0x640], 0
mov dword [rsp + 0x648], 1
movzx eax, word [0x01001c38]
mov word [rsp + 0x30], ax
lea rax, [rsp + 0x32]
mov rdi, rax
xor eax, eax
mov ecx, 0x3fe
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x650], ax
lea rax, [rsp + 0x652]
mov rdi, rax
xor eax, eax
mov ecx, 0xfe
rep stosb byte [rdi], al
movzx eax, word [0x01001c38]
mov word [rsp + 0x430], ax
lea rax, [rsp + 0x432]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x750], 0
mov eax, dword [rsp + 0x750]
add eax, 1
mov dword [rsp + 0x750], eax
mov eax, dword [rsp + 0x770]
cmp dword [rsp + 0x750], eax
jge 0x1011776
cmp dword [rsp + 0x648], 0
je 0x1011776
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.MSVCR80.dll__wcsupr]
mov qword [rsp + 0x640], rax
mov r8, qword [rsp + 0x640]
mov edx, 0x80
lea rcx, [rsp + 0x650]
call fcn.01013c30
mov rax, qword [rsp + 0x640]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x10113a5
mov rax, qword [rsp + 0x640]
movzx eax, word [rax]
cmp eax, 0x2f
jne 0x1011766
mov rax, qword [rsp + 0x640]
add rax, 2
mov qword [rsp + 0x640], rax
mov rax, qword [rsp + 0x640]
movzx eax, word [rax]
mov dword [rsp + 0x754], eax
mov eax, dword [rsp + 0x754]
sub eax, 0x31
mov dword [rsp + 0x754], eax
cmp dword [rsp + 0x754], 0x27
ja case.0x101140b.50
movsxd rax, dword [rsp + 0x754]
lea rcx, [0x01000000]
movzx eax, byte [rcx + rax + 0x11858]
mov eax, dword [rcx + rax*4 + 0x1182c]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 1
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011764
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 2
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011764
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x10
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011764
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x20
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011764
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x40
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
mov eax, dword [rsp + 0x750]
add eax, 1
mov dword [rsp + 0x750], eax
mov eax, dword [rsp + 0x770]
cmp dword [rsp + 0x750], eax
jge 0x1011520
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x1011515
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x1011515
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov r8, qword [rcx + rax*8]
mov edx, 0x84
mov rcx, qword [rsp + 0x788]
call fcn.01013c30
jmp 0x1011520
mov dword [rsp + 0x648], 0
jmp 0x1011764
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x80
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
mov eax, dword [rsp + 0x750]
add eax, 1
mov dword [rsp + 0x750], eax
mov eax, dword [rsp + 0x770]
cmp dword [rsp + 0x750], eax
jge 0x10115ca
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x10115bf
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x10115bf
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov r8, qword [rcx + rax*8]
mov edx, 0x84
mov rcx, qword [rsp + 0x790]
call fcn.01013c30
jmp 0x10115ca
mov dword [rsp + 0x648], 0
jmp 0x1011764
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 8
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
lea rcx, [0x01001ce0]
call qword [sym.imp.MSVCR80.dll__wsystem]
lea rcx, [0x01001cb8]
call qword [sym.imp.MSVCR80.dll__wsystem]
mov r8d, 0x104
lea rdx, [rsp + 0x430]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x430]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov r9d, 0x200
lea r8, [rsp + 0x30]
mov edx, 0x12
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [0x01001c00]
lea rdx, [0x01001c18]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x1011764
mov eax, dword [rsp + 0x750]
add eax, 1
mov dword [rsp + 0x750], eax
mov eax, dword [rsp + 0x770]
cmp dword [rsp + 0x750], eax
jge 0x1011743
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x1011738
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x1011738
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.MSVCR80.dll_wcslen]
cmp rax, 0x80
jbe 0x10116ef
mov dword [rsp + 0x648], 0
jmp 0x1011736
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.MSVCR80.dll__wcsupr]
mov r8, rax
mov edx, 0x84
lea rcx, str.MSSQLSERVER
call fcn.01013c30
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x400
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011743
mov dword [rsp + 0x648], 0
jmp 0x1011764
mov dword [0x010679c4], 1
jmp 0x1011764
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1011764
mov dword [rsp + 0x648], 0
jmp 0x1011771
mov dword [rsp + 0x648], 0
jmp 0x1011312
cmp dword [rsp + 0x648], 0
jne 0x10117b0
mov r9d, 0x200
lea r8, [rsp + 0x30]
mov edx, 0x11
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rdx, [rsp + 0x650]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
and eax, 2
test eax, eax
je 0x101180c
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x101180c
mov r9d, 0x200
lea r8, [rsp + 0x30]
mov edx, 0x11
mov rcx, qword [0x01068158]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rdx, [rsp + 0x30]
lea rcx, [0x01001bbc]
call qword [sym.imp.MSVCR80.dll_wprintf]
mov dword [rsp + 0x648], 0
mov eax, dword [rsp + 0x648]
mov rcx, qword [rsp + 0x758]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x760
pop rdi
ret