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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4473d7
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x465074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x466adc
call fcn.00421960
mov dword [ebp - 0x2b8], 0x104
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.00429e30
add esp, 4
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0
je 0x406d93
mov ecx, dword [ebp - 0x2b8]
push ecx
push 0
mov edx, dword [ebp - 0x2b0]
push edx
call fcn.0042d590
add esp, 0xc
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2bc], eax
jmp 0x406d9d
mov dword [ebp - 0x2bc], 0
mov ecx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2a4], ecx
mov edx, dword [0x4495d8]
mov dword [ebp - 0x18], edx
mov eax, dword [0x4495dc]
mov dword [ebp - 0x14], eax
mov cx, word [0x4495ec]
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.0042d590
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 3
lea ecx, [ebp - 0x220]
push ecx
push 0x46690a
call fcn.0042fbda
add esp, 0xc
mov edx, dword [ebp - 0x2a4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x407022
mov dword [ebp - 0x2a0], 0
jmp 0x406e3e
mov eax, dword [ebp - 0x2a0]
add eax, 4
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 0x64
jge 0x40701d
mov ecx, dword [ebp - 0x2a4]
add ecx, dword [ebp - 0x2a0]
movsx edx, byte [ecx]
test edx, edx
je 0x407018
mov eax, dword [ebp - 0x2a4]
add eax, dword [ebp - 0x2a0]
mov cl, byte [eax]
mov byte [ebp - 0x2a8], cl
mov edx, dword [ebp - 0x2a4]
add edx, dword [ebp - 0x2a0]
mov al, byte [edx + 1]
mov byte [ebp - 0x2a7], al
mov ecx, dword [ebp - 0x2a4]
add ecx, dword [ebp - 0x2a0]
mov dl, byte [ecx + 2]
mov byte [ebp - 0x2a6], dl
push 0x4495fc
lea ecx, [ebp - 0x2a9]
call fcn.0041f440
push eax
lea eax, [ebp - 0x2a5]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.00403730
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x298]
call fcn.004033d0
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c4]
push edx
call fcn.0041dfa0
add esp, 8
push eax
lea ecx, [ebp - 0x250]
call fcn.00403300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x298]
call fcn.00404660
lea ecx, [ebp - 0x2aa]
call fcn.0041f440
push eax
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x250]
call fcn.00422100
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x2d0]
push edx
lea ecx, [ebp - 0x250]
call fcn.00421650
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401340
mov byte [ebp - 4], 3
push 0x104
push 0
lea ecx, [ebp - 0x2b4]
push ecx
push 0
push 0
push 0x104
push 0
lea ecx, [ebp - 0x238]
call fcn.00421840
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x406ff7
mov edx, dword [ebp - 0x2b4]
and edx, 0x80000
jne 0x406ff7
lea ecx, [ebp - 0x238]
call fcn.00421840
push eax
call fcn.0040d580
add esp, 4
cmp eax, 0x2bb
jne 0x406ff7
lea ecx, [ebp - 0x238]
call fcn.00421840
push eax
lea ecx, [ebp - 0x268]
call fcn.00403550
mov byte [ebp - 4], 4
lea eax, [ebp - 0x268]
push eax
mov ecx, 0x466adc
call fcn.004248f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x268]
call fcn.004046b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.004046b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00404660
jmp 0x406e2f
jmp 0x4070eb
mov ecx, 0x43
mov word [ebp - 0x29c], cx
jmp 0x407042
mov dx, word [ebp - 0x29c]
add dx, 1
mov word [ebp - 0x29c], dx
movzx eax, word [ebp - 0x29c]
cmp eax, 0x5a
jge 0x4070eb
mov ecx, 2
imul edx, ecx, 0
mov ax, word [ebp - 0x29c]
mov word [ebp + edx - 0x18], ax
push 0x104
push 0
lea ecx, [ebp - 0x2b4]
push ecx
push 0
push 0
push 0x104
push 0
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4070e6
mov eax, dword [ebp - 0x2b4]
and eax, 0x80000
jne 0x4070e6
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040d580
add esp, 4
cmp eax, 0x2bb
jne 0x4070e6
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x280]
call fcn.00403550
mov dword [ebp - 4], 5
lea eax, [ebp - 0x280]
push eax
mov ecx, 0x466adc
call fcn.004248f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x280]
call fcn.004046b0
jmp 0x407030
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2c8], ecx
mov edx, dword [ebp - 0x2c8]
push edx
call fcn.00429e39
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a2fe
mov esp, ebp
pop ebp
ret