Function at 0x401460
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46b5a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x394
push ebx
push ebp
push esi
push edi
push str.Retrieving_ASPI_Information_n
call fcn.00404bf0
mov ebx, dword [esp + 0x3b8]
mov ecx, 0x8bb
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x328]
push eax
call fcn.00403640
add esp, 8
lea ecx, [esp + 0x220]
mov ebp, eax
push 0x104
push ecx
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x11c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x48634c
call fcn.00404bf0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
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, 0x48633c
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, [ebx + 4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call fcn.00401270
add esp, 0xc
test al, al
jne 0x401557
mov dword [ebx], 0
jmp 0x4017a5
cmp ebp, 6
mov dword [ebx], 3
je 0x401836
cmp ebp, 7
je 0x401836
cmp ebp, 8
je 0x401836
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, str.iosubsys_apix.vxd
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, [ebx + 0x2ec]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401270
add esp, 8
test al, al
jne 0x4015f1
mov dword [ebx], 2
jmp 0x401681
lea esi, [ebx + 0x1a8]
push esi
call fcn.0044518b
add esp, 4
cmp eax, 1
je 0x40163e
lea edi, [ebx + 0x490]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x401633
test al, al
je 0x40162f
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x401633
add esi, 2
add edi, 2
test al, al
jne 0x40160b
xor eax, eax
jmp 0x401638
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401681
jmp 0x40167b
lea edi, [ebx + 0x594]
lea esi, [ebx + 0x2ac]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x401672
test al, al
je 0x40166e
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x401672
add esi, 2
add edi, 2
test al, al
jne 0x40164a
xor eax, eax
jmp 0x401677
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401681
mov dword [ebx], 1
lea ebp, [ebx + 0x1a8]
push ebp
call fcn.004450a9
fcomp qword [0x4717d0]
add esp, 4
fnstsw ax
test ah, 1
je 0x4017a1
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, str.winaspi.dll
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, [ebx + 0x5d4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401270
add esp, 8
test al, al
jne 0x40171a
cmp dword [ebx], 1
je 0x40171a
mov dword [ebx], 2
push ebp
call fcn.0044518b
add esp, 4
cmp eax, 1
je 0x4017a1
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, str._aspienum.vxd
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, [ebx + 0x8bc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401270
add esp, 8
test al, al
jne 0x4017ea
cmp dword [ebx], 1
je 0x4017a1
mov dword [ebx], 2
mov ebp, dword [esp + 0x10]
push 0x486304
call fcn.00404bf0
mov esi, 1
lea edx, [esp + 0x1c]
push esi
push edx
call fcn.00401ba0
lea eax, [ebx + 0xba8]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00401270
add esp, 0x14
test al, al
jne 0x401a98
mov dword [ebx + 0xba4], 0
jmp 0x401b86
lea edi, [ebx + 0xa60]
lea esi, [ebx + 0x778]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x40181e
test al, al
je 0x40181a
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x40181e
add esi, 2
add edi, 2
test al, al
jne 0x4017f6
xor eax, eax
jmp 0x401823
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4017a1
mov dword [ebx], 1
jmp 0x4017a1
lea edx, [ebx + 0x228]
lea ecx, [esp + 0x10]
push edx
call fcn.00461b03
lea ecx, [esp + 0x10]
mov dword [esp + 0x3ac], 0
call fcn.00461f97
push str.AHEAD
lea ecx, [esp + 0x14]
call fcn.0045b913
cmp eax, 0xffffffff
jne 0x401a79
push str.NERO
lea ecx, [esp + 0x14]
call fcn.0045b913
cmp eax, 0xffffffff
jne 0x401a79
or ecx, eax
lea edi, [esp + 0x220]
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, str._system32drivers_aspi32.sys
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, [ebx + 0x2ec]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401270
add esp, 8
test al, al
jne 0x4018fd
mov dword [ebx], 2
jmp 0x401940
lea edi, [ebx + 0x490]
lea esi, [ebx + 0x1a8]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x401931
test al, al
je 0x40192d
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x401931
add esi, 2
add edi, 2
test al, al
jne 0x401909
xor eax, eax
jmp 0x401936
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401940
mov dword [ebx], 1
lea edi, [esp + 0x220]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, str._systemwinaspi.dll
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, [ebx + 0x5d4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401270
add esp, 8
test al, al
jne 0x4019b9
cmp dword [ebx], 1
je 0x4019b9
mov dword [ebx], 2
lea edi, [esp + 0x220]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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, str._systemwowpost.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 eax, [ebx + 0x8bc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401270
add esp, 8
test al, al
jne 0x401a34
cmp dword [ebx], 1
je 0x401a7f
mov dword [ebx], 2
jmp 0x401a7f
lea edi, [ebx + 0xa60]
lea esi, [ebx + 0x778]
mov dl, byte [esi]
mov cl, byte [edi]
mov al, dl
cmp dl, cl
jne 0x401a68
test al, al
je 0x401a64
mov cl, byte [esi + 1]
mov dl, byte [edi + 1]
mov al, cl
cmp cl, dl
jne 0x401a68
add esi, 2
add edi, 2
test al, al
jne 0x401a40
xor eax, eax
jmp 0x401a6d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401a7f
mov dword [ebx], 1
jmp 0x401a7f
mov dword [ebx], 3
lea ecx, [esp + 0x10]
mov dword [esp + 0x3ac], 0xffffffff
call fcn.00461a95
jmp 0x4017a5
mov edi, 3
cmp ebp, 6
mov dword [ebx + 0xba4], edi
je 0x401b1e
cmp ebp, 7
je 0x401b1e
cmp ebp, 8
je 0x401b1e
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add ebx, 0xe90
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.iosubsys_neroapix.vxd
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 + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00401270
add esp, 8
jmp 0x401b86
lea ecx, [ebx + 0xdcc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00461b03
lea ecx, [esp + 0x14]
mov dword [esp + 0x3ac], esi
call fcn.00461f97
push str.AHEAD
lea ecx, [esp + 0x18]
call fcn.0045b913
cmp eax, 0xffffffff
jne 0x401b6c
push str.NERO
lea ecx, [esp + 0x18]
call fcn.0045b913
cmp eax, 0xffffffff
jne 0x401b6c
mov dword [ebx + 0xba4], esi
jmp 0x401b72
mov dword [ebx + 0xba4], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x3ac], 0xffffffff
call fcn.00461a95
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3a0
ret