Function at 0x1011510
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 [0x010667f0]
xor rax, rsp
mov qword [rsp + 0x758], rax
mov qword [rsp + 0x640], 0
mov dword [rsp + 0x648], 1
movzx eax, word [0x01001c50]
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 [0x01001c50]
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 [0x01001c50]
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 0x1011a26
cmp dword [rsp + 0x648], 0
je 0x1011a26
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.0105ab90
mov rax, qword [rsp + 0x640]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x1011655
mov rax, qword [rsp + 0x640]
movzx eax, word [rax]
cmp eax, 0x2f
jne 0x1011a16
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.0x10116bb.50
movsxd rax, dword [rsp + 0x754]
lea rcx, [0x01000000]
movzx eax, byte [rcx + rax + 0x11b08]
mov eax, dword [rcx + rax*4 + 0x11adc]
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 0x1011a14
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 2
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011a14
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x10
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011a14
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x20
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x1011a14
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 0x10117d0
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x10117c5
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x10117c5
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.0105ab90
jmp 0x10117d0
mov dword [rsp + 0x648], 0
jmp 0x1011a14
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 0x101187a
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x101186f
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x101186f
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.0105ab90
jmp 0x101187a
mov dword [rsp + 0x648], 0
jmp 0x1011a14
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 8
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
lea rcx, [0x01001cf8]
call qword [sym.imp.MSVCR80.dll__wsystem]
lea rcx, [0x01001cd0]
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 [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [0x01001c10]
lea rdx, [0x01001c30]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR80.dll_wprintf]
jmp 0x1011a14
mov eax, dword [rsp + 0x750]
add eax, 1
mov dword [rsp + 0x750], eax
mov eax, dword [rsp + 0x770]
cmp dword [rsp + 0x750], eax
jge 0x10119f3
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2d
je 0x10119e8
movsxd rax, dword [rsp + 0x750]
mov rcx, qword [rsp + 0x778]
mov rax, qword [rcx + rax*8]
movzx eax, word [rax]
cmp eax, 0x2f
je 0x10119e8
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 0x101199f
mov dword [rsp + 0x648], 0
jmp 0x10119e6
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.0105ab90
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
or eax, 0x400
mov rcx, qword [rsp + 0x780]
mov dword [rcx], eax
jmp 0x10119f3
mov dword [rsp + 0x648], 0
jmp 0x1011a14
mov dword [0x010689c4], 1
jmp 0x1011a14
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1011a14
mov dword [rsp + 0x648], 0
jmp 0x1011a21
mov dword [rsp + 0x648], 0
jmp 0x10115c2
cmp dword [rsp + 0x648], 0
jne 0x1011a60
mov r9d, 0x200
lea r8, [rsp + 0x30]
mov edx, 0x11
mov rcx, qword [0x01069158]
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 0x1011abc
mov rax, qword [rsp + 0x780]
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x1011abc
mov r9d, 0x200
lea r8, [rsp + 0x30]
mov edx, 0x11
mov rcx, qword [0x01069158]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rdx, [rsp + 0x30]
lea rcx, [0x01001bcc]
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.01059ab0
add rsp, 0x760
pop rdi
ret