Function at 0x5353b4
Capabilities:
Get common file path
Get disk information
Get disk size
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x86
push 0
push 0
dec ecx
jne 0x5353bc
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x535de2
push dword fs:[eax]
mov dword fs:[eax], esp
or edx, 0xffffffff
mov eax, dword [ebx + 0x3dc]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
push 0
push 1
mov ecx, 1
mov edx, 7
mov eax, ebx
call fcn.00536728
mov dword [ebp - 0x54], eax
push 0
push 1
mov ecx, 0x12
mov edx, 7
mov eax, ebx
call fcn.00536728
mov dword [ebp - 0x58], eax
push 0
push 0
xor ecx, ecx
mov edx, 0x56
mov eax, ebx
call fcn.00536728
mov dword [ebp - 0x5c], eax
push 0
push 0
mov ecx, 0x420
mov edx, 0x2d
mov eax, ebx
call fcn.00536728
mov dword [ebp - 0x60], eax
push 0x535df0
push 0x535e00
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x40], eax
mov eax, dword [0x5cfbd8]
mov eax, dword [eax]
mov edx, 0x258
call fcn.005322ac
mov esi, eax
mov dl, 1
mov eax, dword [0x41b4b4]
call fcn.00403d78
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3d4], esi
mov byte [ebp - 0x3d0], 0
lea edx, [ebp - 0x3d4]
xor ecx, ecx
mov eax, 0x535e14
call fcn.005aea90
test esi, esi
jle 0x535b80
push 0
push 0
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00402e64
mov edi, eax
push edi
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x5359f6
mov dword [ebp - 8], edi
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040d0f0
mov eax, dword [ebp - 0x10]
call fcn.005aea34
jmp 0x5359ec
mov eax, dword [ebp - 0x10]
call fcn.00405194
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x5359c5
mov edx, dword [0x534254]
mov eax, 0x48
call fcn.00405cf4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.004051f4
mov eax, dword [ebp - 0x34]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x40], 0
push 0x104
lea eax, [ebp - 0x282]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x104
lea eax, [ebp - 0x17d]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405194
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x5355c6
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x282]
call fcn.0040d0f0
mov edx, 0x535e44
mov eax, dword [ebp - 0x30]
call fcn.004052d8
test eax, eax
jle 0x535594
mov eax, dword [ebp - 0x34]
mov byte [eax + 0xc], 1
jmp 0x5355c6
mov edx, 0x535e54
mov eax, dword [ebp - 0x30]
call fcn.004052d8
test eax, eax
jle 0x5355ae
mov eax, dword [ebp - 0x34]
mov byte [eax + 0xc], 2
jmp 0x5355c6
mov edx, 0x535e64
mov eax, dword [ebp - 0x30]
call fcn.004052d8
test eax, eax
jle 0x5355c6
mov eax, dword [ebp - 0x34]
mov byte [eax + 0xc], 3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405194
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x535642
mov eax, dword [ebp - 0x24]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
call fcn.00405dbc
call fcn.00405dbc
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x2c]
imul dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x20]
imul dword [ebp - 0x24]
mov edx, dword [ebp - 0x34]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
lea eax, [ebp - 0x38]
mov edx, 0x535e70
call fcn.00404fe0
push 0
push 0x80
push 3
push 0
push 3
push 0x80000080
mov eax, dword [ebp - 0x38]
call fcn.00405194
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x53596d
cmp dword [ebp - 0x40], 0
je 0x5356f5
push 0x60
lea eax, [ebp - 0x2e8]
push eax
push 0
push 0
push 0x90064
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x5356f5
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2d8]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x2d4]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2e0]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x2dc]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2bc]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c0]
mov dword [eax + 0x2c], edx
push 0
lea eax, [ebp - 0x50]
push eax
push 0x28
lea eax, [ebp - 0x310]
push eax
push 0
push 0
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x5357b5
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x310]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x30c]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x308]
adc edx, dword [ebp - 0x304]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x3f4], eax
mov byte [ebp - 0x3f0], 0xb
mov eax, dword [ebp - 0x34]
add eax, 0x30
mov dword [ebp - 0x3ec], eax
mov byte [ebp - 0x3e8], 0x10
lea eax, [ebp - 0x308]
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 0x3e0], 0x10
mov eax, dword [ebp - 0x34]
add eax, 0x38
mov dword [ebp - 0x3dc], eax
mov byte [ebp - 0x3d8], 0x10
lea edx, [ebp - 0x3f4]
mov ecx, 3
mov eax, 0x535e80
call fcn.005aea90
jmp 0x5358f7
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x408], 0xb
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x404], eax
mov byte [ebp - 0x400], 0
mov dword [ebp - 0x3fc], 0x28
mov byte [ebp - 0x3f8], 0
lea edx, [ebp - 0x40c]
mov ecx, 2
mov eax, 0x535ebc
call fcn.005aea90
push 0
lea eax, [ebp - 0x50]
push eax
push 0x90
lea eax, [ebp - 0x3a0]
push eax
push 0
push 0
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x5358bf
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x398]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x394]
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x390]
adc edx, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x3f4], eax
mov byte [ebp - 0x3f0], 0xb
mov eax, dword [ebp - 0x34]
add eax, 0x30
mov dword [ebp - 0x3ec], eax
mov byte [ebp - 0x3e8], 0x10
lea eax, [ebp - 0x390]
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 0x3e0], 0x10
mov eax, dword [ebp - 0x34]
add eax, 0x38
mov dword [ebp - 0x3dc], eax
mov byte [ebp - 0x3d8], 0x10
lea edx, [ebp - 0x3f4]
mov ecx, 3
mov eax, 0x535ef4
call fcn.005aea90
jmp 0x5358f7
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0
mov dword [ebp - 0x414], 0x90
mov byte [ebp - 0x410], 0
lea edx, [ebp - 0x41c]
mov ecx, 1
mov eax, 0x535f30
call fcn.005aea90
push 0
lea eax, [ebp - 0x50]
push eax
push 0x20
lea eax, [ebp - 0x3c0]
push eax
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jne 0x535961
push 0
lea eax, [ebp - 0x50]
push eax
push 0xc
lea eax, [ebp - 0x3cc]
push eax
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x53594d
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c8]
mov dword [eax + 8], edx
jmp 0x53596d
mov eax, 0x535f68
call fcn.005aea34
mov eax, dword [ebp - 0x34]
xor edx, edx
mov dword [eax + 8], edx
jmp 0x53596d
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3b8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x408], 0xb
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 8]
mov dword [ebp - 0x404], eax
mov byte [ebp - 0x400], 0
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x3fc], eax
mov byte [ebp - 0x3f8], 0x10
lea edx, [ebp - 0x40c]
mov ecx, 2
mov eax, 0x535f84
call fcn.005aea90
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.0041dfcc
lea eax, [ebp - 0x420]
mov edx, edi
call fcn.00404ecc
mov eax, dword [ebp - 0x420]
call fcn.00404f94
inc eax
add dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040d0f0
cmp dword [ebp - 0x10], 0
jne 0x5354e8
mov eax, edi
call fcn.00402e94
dec esi
test esi, esi
jl 0x535b80
inc esi
mov dword [ebp - 0x78], esi
xor edi, edi
lea eax, [ebp - 0x424]
push eax
mov eax, dword [0x5cfbd8]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x25a
call fcn.005321cc
mov edx, dword [ebp - 0x424]
lea eax, [ebp - 0x74]
call fcn.00404f5c
mov dword [ebp - 0x41c], edi
mov byte [ebp - 0x418], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x414], eax
mov byte [ebp - 0x410], 0xb
lea edx, [ebp - 0x41c]
mov ecx, 1
mov eax, 0x535fb0
call fcn.005aea90
cmp dword [ebp - 0x74], 0
je 0x535b76
mov eax, dword [0x5cfbd8]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x73d
call fcn.00531d7c
mov esi, eax
mov eax, dword [0x5cfbd8]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x73e
call fcn.00531d7c
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x41c], esi
mov byte [ebp - 0x418], 0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x414], eax
mov byte [ebp - 0x410], 0
lea edx, [ebp - 0x41c]
mov ecx, 1
mov eax, 0x535fd0
call fcn.005aea90
cmp esi, 0xffffffff
je 0x535adc
cmp dword [ebp - 0x70], 0xffffffff
jne 0x535b76
mov edx, dword [0x534254]
mov eax, 0x48
call fcn.00405cf4
mov dword [ebp - 0x34], eax
mov eax, dword [0x5cfbd8]
mov eax, dword [eax]
mov ecx, edi
mov edx, 0x73c
call fcn.00531d7c
mov edx, dword [ebp - 0x34]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0x34]
mov edx, edi
mov eax, ebx
call fcn.005363ec
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x74]
call fcn.00404d28
mov eax, dword [ebp - 0x34]
mov byte [eax + 0x40], 1
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x400]
call fcn.0041dfcc
xor esi, esi
jmp 0x535b6e
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0041e178
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp edi, dword [eax + 8]
jne 0x535b6d
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0041e018
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x400]
call fcn.0041dfcc
jmp 0x535b6e
inc esi
mov eax, dword [ebp - 0xc]
cmp esi, dword [eax + 8]
jl 0x535b3e
inc edi
dec dword [ebp - 0x78]
jne 0x535a0c
cmp dword [ebp - 0xc], 0
je 0x535bce
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x535bc6
inc eax
mov dword [ebp - 0x78], eax
xor esi, esi
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0041e178
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov edx, dword [0x534254]
call fcn.00405ac0
mov edx, dword [0x534254]
mov eax, dword [ebp - 0x34]
call fcn.00405d08
inc esi
dec dword [ebp - 0x78]
jne 0x535b97
mov eax, dword [ebp - 0xc]
call fcn.00403da8
mov dword [ebp - 0x6c], 0xffffffff
mov eax, dword [ebx + 0x400]
cmp dword [eax + 8], 0
jle 0x535be6
xor eax, eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x64]
mov edx, 0x104
call fcn.00405320
push 0x104
mov eax, dword [ebp - 0x64]
call fcn.00405194
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x68]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x64]
call fcn.004051f4
mov eax, dword [ebx + 0x400]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x535d5b
inc eax
mov dword [ebp - 0x78], eax
xor esi, esi
mov edx, esi
mov eax, dword [ebx + 0x400]
call fcn.0041e178
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x40], 0
je 0x535cd1
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0xb
mov eax, dword [ebp - 0x34]
push dword [eax + 0x14]
push dword [eax + 0x10]
lea edx, [ebp - 0x428]
mov eax, ebx
call fcn.00536f58
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x414], eax
mov byte [ebp - 0x410], 0xb
lea edx, [ebp - 0x41c]
mov ecx, 1
mov eax, 0x535ff4
call fcn.0040d608
mov eax, dword [ebx + 0x3dc]
mov eax, dword [eax + 0x23c]
mov edx, dword [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebx + 0x32c]
mov eax, dword [eax + 0x23c]
mov ecx, esi
mov edx, dword [ebp - 0x74]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp 0x535d3f
lea eax, [ebp - 0x42c]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x418], 0xb
mov eax, dword [ebp - 0x34]
push dword [eax + 0x14]
push dword [eax + 0x10]
lea edx, [ebp - 0x430]
mov eax, ebx
call fcn.00536f58
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x414], eax
mov byte [ebp - 0x410], 0xb
lea edx, [ebp - 0x41c]
mov ecx, 1
mov eax, 0x536008
call fcn.0040d608
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebx + 0x3dc]
mov eax, dword [eax + 0x23c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov edx, dword [ebp - 0x68]
call fcn.004050e0
jne 0x535d51
mov dword [ebp - 0x6c], esi
inc esi
dec dword [ebp - 0x78]
jne 0x535c34
mov eax, dword [ebx + 0x3dc]
mov eax, dword [eax + 0x23c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x535d81
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x3dc]
mov ecx, dword [eax]
call dword [ecx + 0xd0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535de9
lea eax, [ebp - 0x430]
mov edx, 3
call fcn.00404cf8
lea eax, [ebp - 0x424]
call fcn.004053b4
lea eax, [ebp - 0x420]
call fcn.00404cd4
lea eax, [ebp - 0x74]
call fcn.00404cd4
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00404cf8
lea eax, [ebp - 0x38]
call fcn.00404cd4
lea eax, [ebp - 0x30]
call fcn.00404cd4
lea eax, [ebp - 0x10]
call fcn.00404cd4
ret