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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x720
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x618], 1
mov ax, word [0x10015d4]
mov word [ebp - 0x408], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x406]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dx, word [0x10015d4]
mov word [ebp - 0x718], dx
push 0xfe
push 0
lea eax, [ebp - 0x716]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cx, word [0x10015d4]
mov word [ebp - 0x610], cx
push 0x206
push 0
lea edx, [ebp - 0x60e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 0x71c], 0
mov eax, dword [ebp - 0x71c]
add eax, 1
mov dword [ebp - 0x71c], eax
mov ecx, dword [ebp - 0x71c]
cmp ecx, dword [ebp + 8]
jge 0x100e8c1
cmp dword [ebp - 0x618], 0
je 0x100e8c1
mov edx, dword [ebp - 0x71c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.MSVCR80.dll__wcsupr]
add esp, 4
mov dword [ebp - 0x614], eax
mov edx, dword [ebp - 0x614]
push edx
push 0x80
lea eax, [ebp - 0x718]
push eax
call fcn.01010390
mov ecx, dword [ebp - 0x614]
movzx edx, word [ecx]
cmp edx, 0x2d
je 0x100e5cd
mov eax, dword [ebp - 0x614]
movzx ecx, word [eax]
cmp ecx, 0x2f
jne 0x100e8b2
mov edx, dword [ebp - 0x614]
add edx, 2
mov dword [ebp - 0x614], edx
mov eax, dword [ebp - 0x614]
movzx ecx, word [eax]
mov dword [ebp - 0x720], ecx
mov edx, dword [ebp - 0x720]
sub edx, 0x31
mov dword [ebp - 0x720], edx
cmp dword [ebp - 0x720], 0x27
ja case.0x100e614.1
mov eax, dword [ebp - 0x720]
movzx ecx, byte [eax + 0x100e98c]
jmp dword [ecx*4 + 0x100e960]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100e8b0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100e8b0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or eax, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100e8b0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or eax, 0x20
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x100e8b0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or eax, 0x40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x71c]
add edx, 1
mov dword [ebp - 0x71c], edx
mov eax, dword [ebp - 0x71c]
cmp eax, dword [ebp + 8]
jge 0x100e6d9
mov ecx, dword [ebp - 0x71c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x100e6cf
mov edx, dword [ebp - 0x71c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x100e6cf
mov eax, dword [ebp - 0x71c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
push 0x84
mov eax, dword [ebp + 0x14]
push eax
call fcn.01010390
jmp 0x100e6d9
mov dword [ebp - 0x618], 0
jmp 0x100e8b0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
or edx, 0x80
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x71c]
add ecx, 1
mov dword [ebp - 0x71c], ecx
mov edx, dword [ebp - 0x71c]
cmp edx, dword [ebp + 8]
jge 0x100e757
mov eax, dword [ebp - 0x71c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
movzx eax, word [edx]
cmp eax, 0x2d
je 0x100e74d
mov ecx, dword [ebp - 0x71c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x100e74d
mov edx, dword [ebp - 0x71c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push 0x84
mov edx, dword [ebp + 0x18]
push edx
call fcn.01010390
jmp 0x100e757
mov dword [ebp - 0x618], 0
jmp 0x100e8b0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
or ecx, 8
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
push 0x1001644
call dword [sym.imp.MSVCR80.dll__wsystem]
add esp, 4
push 0x1001620
call dword [sym.imp.MSVCR80.dll__wsystem]
add esp, 4
push 0x104
lea eax, [ebp - 0x610]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x610]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 0x200
lea edx, [ebp - 0x408]
push edx
push 0x12
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x1001598
push 0x10015b4
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 0xc
jmp 0x100e8b0
mov edx, dword [ebp - 0x71c]
add edx, 1
mov dword [ebp - 0x71c], edx
mov eax, dword [ebp - 0x71c]
cmp eax, dword [ebp + 8]
jge 0x100e890
mov ecx, dword [ebp - 0x71c]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
movzx ecx, word [eax]
cmp ecx, 0x2d
je 0x100e886
mov edx, dword [ebp - 0x71c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0x100e886
mov eax, dword [ebp - 0x71c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
cmp eax, 0x80
jbe 0x100e84e
mov dword [ebp - 0x618], 0
jmp 0x100e884
mov eax, dword [ebp - 0x71c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.MSVCR80.dll__wcsupr]
add esp, 4
push eax
push 0x84
push str.MSSQLSERVER
call fcn.01010390
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
or ecx, 0x400
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x100e890
mov dword [ebp - 0x618], 0
jmp 0x100e8b0
mov dword [0x104e7ac], 1
jmp 0x100e8b0
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x100e8b0
mov dword [ebp - 0x618], 0
jmp 0x100e8bc
mov dword [ebp - 0x618], 0
jmp 0x100e54e
cmp dword [ebp - 0x618], 0
jne 0x100e8fc
push 0x200
lea eax, [ebp - 0x408]
push eax
push 0x11
mov ecx, dword [0x104ef34]
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [ebp - 0x718]
push edx
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
and edx, 2
je 0x100e949
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
and ecx, 1
jne 0x100e949
push 0x200
lea edx, [ebp - 0x408]
push edx
push 0x11
mov eax, dword [0x104ef34]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [ebp - 0x408]
push ecx
push 0x100155c
call dword [sym.imp.MSVCR80.dll_wprintf]
add esp, 8
mov dword [ebp - 0x618], 0
mov eax, dword [ebp - 0x618]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret