Function at 0x4ff5b0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b851
mov eax, dword fs:[0]
push eax
sub esp, 0x764
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x758], edi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x758], edi
mov ecx, 0x6355a1
mov dword [ebp - 0x76c], eax
mov dword [ebp - 0x750], ebx
call fcn.00561ea5
cmp dword [esi + 0x10], ebx
jne 0x4ff62d
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x750], 1
jmp 0x4ffb4b
push esi
lea ecx, [ebp - 0x6bc]
call fcn.00404010
mov edx, 0x5c8948
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x6bc]
call fcn.0048d870
mov edx, 0x5c89ac
lea ecx, [ebp - 0x6bc]
call fcn.0048d870
cmp dword [ebp - 0x6a8], 8
lea ecx, [ebp - 0x6bc]
push 0xa
cmovae ecx, dword [ebp - 0x6bc]
mov edx, 0x5c89b0
call fcn.0048d540
add esp, 4
test eax, eax
jne 0x4ff78e
lea ecx, [ebp - 0x6d4]
call fcn.00403f80
push 0x20c
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2a4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4ff77f
xor eax, eax
lea ecx, [ebp - 0x2a4]
mov word [ebp - 0x9a], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ff6e0
sub ecx, edx
lea eax, [ebp - 0x2a4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x6d4]
call fcn.00404640
cmp dword [ebp - 0x6c0], 8
lea eax, [ebp - 0x6d4]
mov edx, 0x5c89b0
lea ecx, [ebp - 0x6bc]
cmovae eax, dword [ebp - 0x6d4]
push eax
call fcn.0048d740
mov ecx, dword [ebp - 0x76c]
lea eax, [ebp - 0x6bc]
add esp, 4
cmp ecx, eax
je 0x4ff754
cmp dword [ebp - 0x6a8], 8
push dword [ebp - 0x6ac]
cmovae eax, dword [ebp - 0x6bc]
push eax
call fcn.00404640
mov dword [edi], 0
mov dword [edi + 4], 0
lea ecx, [ebp - 0x6d4]
mov dword [ebp - 0x750], 1
mov byte [ebp - 4], 1
call fcn.00403de0
jmp 0x4ffb3c
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
jmp 0x4ff761
push 0x400
lea eax, [ebp - 0x6a4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6a4]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4ffb26
cmp word [ebp - 0x6a4], 0
mov dword [ebp - 0x764], 0
je 0x4ffb26
lea esi, [ebp - 0x6a4]
mov dword [ebp - 0x768], 0
mov dword [ebp - 0x75c], esi
nop dword [eax]
push 0x5c89c8
lea ecx, [ebp - 0x704]
call fcn.00403ed0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6ec]
or ebx, 2
push esi
mov dword [ebp - 0x750], ebx
call fcn.00403ed0
mov dword [ebp - 4], 4
lea edx, [ebp - 0x760]
mov ecx, dword [ebp - 0x6f4]
lea esi, [ebp - 0x770]
mov eax, dword [ebp - 0x6dc]
or ebx, 4
cmp eax, ecx
mov dword [ebp - 0x770], ecx
mov dword [ebp - 0x760], eax
lea ecx, [ebp - 0x6ec]
cmovae esi, edx
mov dword [ebp - 0x750], ebx
cmp dword [ebp - 0x6f0], 8
lea edx, [ebp - 0x704]
mov dword [ebp - 0x758], ebx
cmovae edx, dword [ebp - 0x704]
cmp dword [ebp - 0x6d8], 8
push dword [esi]
cmovae ecx, dword [ebp - 0x6ec]
call fcn.0048d540
add esp, 4
test eax, eax
je 0x4ff93f
push 0x5c89d0
lea ecx, [ebp - 0x71c]
call fcn.00403ed0
push dword [ebp - 0x75c]
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x734]
or ebx, 8
mov dword [ebp - 0x750], ebx
call fcn.00403ed0
mov dword [ebp - 4], 6
lea edx, [ebp - 0x760]
mov ebx, dword [ebp - 0x758]
lea esi, [ebp - 0x758]
mov ecx, dword [ebp - 0x70c]
or ebx, 0x18
mov eax, dword [ebp - 0x724]
cmp eax, ecx
mov dword [ebp - 0x758], ecx
lea ecx, [ebp - 0x734]
cmovae esi, edx
mov dword [ebp - 0x760], eax
cmp dword [ebp - 0x708], 8
lea edx, [ebp - 0x71c]
mov dword [ebp - 0x750], ebx
cmovae edx, dword [ebp - 0x71c]
cmp dword [ebp - 0x720], 8
push dword [esi]
cmovae ecx, dword [ebp - 0x734]
call fcn.0048d540
add esp, 4
mov byte [ebp - 0x751], 0
test eax, eax
jne 0x4ff946
mov byte [ebp - 0x751], 1
mov dword [ebp - 4], 5
test bl, 0x10
je 0x4ff966
and ebx, 0xffffffef
lea ecx, [ebp - 0x734]
mov dword [ebp - 0x750], ebx
call fcn.00403de0
mov dword [ebp - 4], 4
test bl, 8
je 0x4ff986
and ebx, 0xfffffff7
lea ecx, [ebp - 0x71c]
mov dword [ebp - 0x750], ebx
call fcn.00403de0
mov esi, ebx
mov dword [ebp - 4], 3
and ebx, 0xfffffffb
lea ecx, [ebp - 0x6ec]
mov dword [ebp - 0x750], ebx
call fcn.00403de0
mov ebx, esi
mov dword [ebp - 4], 1
and ebx, 0xfffffff9
lea ecx, [ebp - 0x704]
mov dword [ebp - 0x750], ebx
call fcn.00403de0
cmp byte [ebp - 0x751], 0
jne 0x4ffaf7
push 0x80
lea eax, [ebp - 0x98]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x75c]
add esp, 0xc
movzx eax, word [eax]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x768]
push 0x40
movzx eax, word [ebp + eax - 0x6a2]
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4ffaf7
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x6d4]
call fcn.00403ed0
mov edx, 0x5c8948
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6d4]
call fcn.0048d870
mov edx, 0x5c89ac
lea ecx, [ebp - 0x6d4]
call fcn.0048d870
cmp dword [ebp - 0x6c0], 8
lea edx, [ebp - 0x6d4]
mov esi, dword [ebp - 0x6c4]
lea ecx, [ebp - 0x6bc]
cmovae edx, dword [ebp - 0x6d4]
cmp dword [ebp - 0x6a8], 8
push esi
cmovae ecx, dword [ebp - 0x6bc]
call fcn.0048d540
add esp, 4
test eax, eax
jne 0x4ffae8
mov eax, dword [ebp - 0x6ac]
lea edx, [ebp - 0x6bc]
sub eax, esi
lea ecx, [ebp - 0x74c]
push eax
call fcn.0048dab0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x73c], 0
je 0x4ffb69
push 0
lea ecx, [ebp - 0x74c]
call fcn.00409ed0
cmp word [eax], 0x5c
je 0x4ffb69
lea ecx, [ebp - 0x74c]
mov byte [ebp - 4], 7
call fcn.00403de0
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 1
call fcn.00403de0
mov eax, dword [ebp - 0x764]
lea esi, [ebp - 0x6a4]
add eax, 4
mov dword [ebp - 0x764], eax
add eax, eax
add esi, eax
mov dword [ebp - 0x768], eax
mov dword [ebp - 0x75c], esi
cmp word [esi], 0
jne 0x4ff7f0
or ebx, 1
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [ebp - 0x750], ebx
lea ecx, [ebp - 0x6bc]
mov byte [ebp - 4], 0
call fcn.00403de0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f553
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
lea edx, [ebp - 0x6bc]
lea ecx, [ebp - 0x6ec]
call fcn.0048db40
add esp, 8
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x704]
call fcn.00403ed0
lea eax, [ebp - 0x6ec]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x704]
lea ecx, [ebp - 0x71c]
call fcn.00490590
add esp, 4
mov ecx, dword [ebp - 0x76c]
push eax
mov byte [ebp - 4], 0xb
call fcn.00403e50
lea ecx, [ebp - 0x71c]
mov byte [ebp - 4], 0xa
call fcn.00403de0
lea ecx, [ebp - 0x704]
mov byte [ebp - 4], 9
call fcn.00403de0
mov dword [edi], 0
lea ecx, [ebp - 0x6ec]
mov dword [edi + 4], 0
or ebx, 1
mov dword [ebp - 0x750], ebx
mov byte [ebp - 4], 8
call fcn.00403de0
lea ecx, [ebp - 0x74c]
mov byte [ebp - 4], 7
call fcn.00403de0
lea ecx, [ebp - 0x6d4]
mov byte [ebp - 4], 1
call fcn.00403de0
jmp 0x4ffb3c