Function at 0x41d82b
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
push edi
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x210], 1
mov ax, word [0x449504]
mov word [ebp - 0x610], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x60e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov cx, word [0x44950c]
mov word [ebp - 0x714], cx
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x712]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dx, word [0x449514]
mov word [ebp - 0x20c], dx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jge 0x41dbc6
cmp dword [ebp - 0x210], 0
je 0x41dbc6
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.MSVCRT.dll__wcsupr]
add esp, 4
mov dword [ebp - 0x614], eax
mov edx, dword [ebp - 0x614]
push edx
lea eax, [ebp - 0x714]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov ecx, dword [ebp - 0x614]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x2d
je 0x41d922
mov eax, dword [ebp - 0x614]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x2f
jne 0x41dbb7
mov edx, dword [ebp - 0x614]
add edx, 2
mov dword [ebp - 0x614], edx
mov eax, dword [ebp - 0x614]
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x718], ecx
mov edx, dword [ebp - 0x718]
sub edx, 0x31
mov dword [ebp - 0x718], edx
cmp dword [ebp - 0x718], 0x27
ja case.0x41d96c.11
mov ecx, dword [ebp - 0x718]
xor eax, eax
mov al, byte [ecx + 0x41dcb7]
jmp dword [eax*4 + 0x41dc87]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or al, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x41dbb5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or al, 2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x41dbb5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or al, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x41dbb5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or al, 0x20
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x41dbb5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or al, 0x40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jge 0x41da1d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x2d
je 0x41da13
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x2f
je 0x41da13
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x41da1d
mov dword [ebp - 0x210], 0
jmp 0x41dbb5
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
or dl, 0x80
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 8]
jge 0x41da89
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x2d
je 0x41da7f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x2f
je 0x41da7f
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
jmp 0x41da89
mov dword [ebp - 0x210], 0
jmp 0x41dbb5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
or ecx, 8
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
push 0x43e680
call dword [sym.imp.SQLUNIRL.dll__tsystem]
add esp, 4
push str.doskey__reinstall
call dword [sym.imp.SQLUNIRL.dll__tsystem]
add esp, 4
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SQLUNIRL.dll__GetModuleFileName_12]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push 0x200
lea edx, [ebp - 0x610]
push edx
push 0x12
mov eax, dword [0x4492ac]
push eax
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
push 0x43e6ac
push 0x43e6c0
lea ecx, [ebp - 0x610]
push ecx
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0xc
jmp 0x41dbb5
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
or ah, 2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x41dbb5
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jge 0x41db95
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x2d
je 0x41db8b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x2f
je 0x41db8b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.MSVCRT.dll__wcsupr]
add esp, 4
push eax
push str.MSSQLSERVER
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
or ch, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
jmp 0x41db95
mov dword [ebp - 0x210], 0
jmp 0x41dbb5
mov dword [0x448b24], 1
jmp 0x41dbb5
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x41dbb5
mov dword [ebp - 0x210], 0
jmp 0x41dbc1
mov dword [ebp - 0x210], 0
jmp 0x41d8ac
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
and ecx, 0x200
test ecx, ecx
je 0x41dbf4
cmp dword [0x448b1c], 0
jne 0x41dbf4
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and ah, 0xf9
test eax, eax
je 0x41dbf4
mov dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0
jne 0x41dc2f
push 0x200
lea ecx, [ebp - 0x610]
push ecx
push 0x11
mov edx, dword [0x4492ac]
push edx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
lea eax, [ebp - 0x714]
push eax
lea ecx, [ebp - 0x610]
push ecx
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
and eax, 2
test eax, eax
je 0x41dc7c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
and edx, 1
test edx, edx
jne 0x41dc7c
push 0x200
lea eax, [ebp - 0x610]
push eax
push 0x11
mov ecx, dword [0x4492ac]
push ecx
call dword [sym.imp.SQLUNIRL.dll__LoadString_16]
lea edx, [ebp - 0x610]
push edx
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 4
mov dword [ebp - 0x210], 0
mov eax, dword [ebp - 0x210]
pop edi
mov esp, ebp
pop ebp
ret