Function at 0x8522c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x855aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 8]
call fcn.00013eac
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x38]
call fcn.00084f5c
mov eax, dword [ebp - 0x38]
call fcn.00013ee4
test eax, eax
jle 0x85301
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x38]
call fcn.000748e4
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
call fcn.00013cfc
mov eax, dword [ebp - 0x38]
call fcn.000140a8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x852c9
mov eax, dword [0xe750c]
or dword [ebp - 0x3c], eax
push 0x104
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x104
push 0
mov eax, dword [ebp - 0x38]
call fcn.000140a8
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x85301
test byte [ebp - 0x44], 8
jne 0x85301
mov eax, dword [0xe7508]
or dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x8556c
cmp dword [0xe7834], 0
je 0x85564
mov eax, 0x400
call fcn.000793dc
mov dword [ebp - 0x14], eax
mov eax, 0x400
call fcn.000793dc
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
mov edx, 0x800
call fcn.000744bc
xor eax, eax
push ebp
push 0x8555d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00078a68
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
call fcn.00078a68
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x8552b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
call fcn.000140a8
push eax
call dword [0xe7850]
test eax, eax
je 0x854c8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00078aa4
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00078aa4
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [0xe7854]
test eax, eax
je 0x854b4
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x18]
call fcn.00078a84
push dword [ebp - 0x58]
push 0x855c0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
call fcn.00078a84
push dword [ebp - 0x5c]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00014598
cmp byte [ebp - 9], 0
je 0x85424
lea eax, [ebp - 0x48]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 4
push 1
mov eax, dword [ebp - 8]
call fcn.000144b8
push eax
call dword [0xe7838]
jmp 0x85429
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x30]
call fcn.000144b8
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [0xe784c]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 1
call dword [0xe7858]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x854a0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0
push 0
push 0x80000004
push 1
mov eax, dword [ebp - 8]
call fcn.000144b8
push eax
call dword [0xe7848]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x854da
mov eax, dword [0xe74f4]
or dword [ebp - 0x3c], eax
jmp 0x854da
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [0xe74f8]
or dword [ebp - 0x3c], eax
jmp 0x854da
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [0xe74fc]
or dword [ebp - 0x3c], eax
jmp 0x854da
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [0xe7500]
or dword [ebp - 0x3c], eax
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x85532
cmp dword [ebp - 0x48], 0
je 0x854fd
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x1c], 0
je 0x85511
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
je 0x85525
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x20], eax
ret
mov eax, dword [0xe7504]
or dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x855b1
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.000142ac
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00013c88
lea eax, [ebp - 0x38]
call fcn.00013c64
lea eax, [ebp - 0x30]
call fcn.00014294
ret