Function at 0x402bf0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4101f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x62c
push ebx
push ebp
mov dword [esp + 0xc], ecx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.00403390
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x644], ebx
call fcn.004025b0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x334]
or ebp, 0xffffffff
rep stosd dword es:[edi], eax
mov edi, str.SoftwareMicrosoftMSSQLServ
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x334]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x334]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov byte [esp + 0x644], 1
rep movsb byte es:[edi], byte [esi]
mov edi, 0x413230
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x402cc7
lea ecx, [esp + 0x10]
mov byte [esp + 0x644], bl
call fcn.004032e0
mov dword [esp + 0x644], ebp
jmp 0x402fa3
lea eax, [esp + 0x438]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402d05
lea ecx, [esp + 0x10]
mov byte [esp + 0x644], bl
call fcn.004032e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x644], ebp
call fcn.004033d0
mov eax, ebp
jmp 0x402fae
lea ecx, [esp + 0x334]
push ecx
push 0x80000002
lea ecx, [esp + 0x20]
call fcn.00403470
mov ebp, dword [esp + 0x654]
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov edi, str.vswitch.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__Silent_1__IgnoreErrors_1__NoCheck_1__SwitchTo_00
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x43c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
push ebx
lea ecx, [esp + 0x20]
call fcn.00403160
mov esi, eax
cmp esi, ebx
jne 0x402ea4
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x30]
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.vswitch.exe
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x34]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__Silent_1__IgnoreErrors_1__NoCheck_1__SwitchTo
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x654]
and ecx, 3
lea edx, [esp + 0x34]
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x43c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
push ecx
push ebx
lea ecx, [esp + 0x20]
call fcn.00403160
mov esi, eax
cmp esi, ebx
je 0x402ecf
lea ecx, [esp + 0x10]
mov byte [esp + 0x644], bl
call fcn.004032e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x644], 0xffffffff
call fcn.004033d0
mov eax, esi
jmp 0x402fae
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x230]
lea edx, [esp + 0x230]
rep stosd dword es:[edi], eax
mov edi, str.SoftwareMicrosoftMSSQLServ
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x230]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x230]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
lea ecx, [esp + 0x20]
call fcn.00403470
mov edx, dword [esp + 0x658]
mov eax, dword [esp + 0x65c]
lea ecx, [esp + 0x53c]
push 0x100
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [esp + 0x64c]
lea ecx, [esp + 0x53c]
push 0x17
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00402fd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x644], bl
call fcn.004032e0
mov dword [esp + 0x644], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004033d0
xor eax, eax
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x638
ret 0x14