Function at 0xa2d1c0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8c437
push eax
mov dword fs:[0], esp
sub esp, 0x74c
push ebx
push ebp
mov ebp, dword [esp + 0x768]
push esi
test ebp, ebp
push edi
jne 0xa2d22c
mov eax, dword [0xaa2204]
mov ecx, dword [eax]
shr ecx, 0x15
test cl, 1
je 0xa2d212
mov eax, dword [esp + 0x77c]
test eax, eax
je 0xa2d212
push str.__lpReOpenBuffNULL_
push eax
call fcn.00a16060
add esp, 8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x778]
mov dword [edx], 0xffffffff
jmp 0xa2d5b3
lea ecx, [esp + 0x28]
mov byte [ebp], 0x88
call fcn.00a155c0
mov esi, dword [esp + 0x76c]
lea ecx, [esp + 0x33c]
push esi
mov dword [esp + 0x768], 0
call fcn.00a15040
mov eax, dword [eax + 8]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov byte [esp + 0x770], 1
call fcn.009ef8b0
add esp, 0xc
lea ecx, [esp + 0x33c]
mov bl, al
mov byte [esp + 0x764], 0
call fcn.00a155e0
test bl, bl
je 0xa2d58a
mov eax, dword [esp + 0x30]
push 0
lea edi, [ebp + 8]
push 0
push 0x80
or ebx, 0xffffffff
push edi
push ebx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, 2
cmp eax, ecx
jne 0xa2d2ca
mov byte [ebp + 1], 1
jmp 0xa2d2ce
mov byte [ebp + 1], 0
mov eax, dword [esp + 0x774]
test ah, 1
je 0xa2d2f3
mov ecx, dword [esp + 0x778]
mov dword [esp + 0x764], ebx
mov dword [ecx], 0
jmp 0xa2d5aa
test ah, 0x80
je 0xa2d2fa
mov esi, edi
test esi, esi
jne 0xa2d343
mov edx, dword [0xaa2204]
mov eax, dword [edx]
shr eax, 0x15
test al, 1
je 0xa2d326
mov eax, dword [esp + 0x77c]
test eax, eax
je 0xa2d326
push str.__lpFileNameNULL_
push eax
call fcn.00a16060
add esp, 8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x778]
mov dword [esp + 0x764], ebx
mov dword [ecx], ebx
jmp 0xa2d5aa
mov ebp, 3
cmp eax, 0x1000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0x14], ebp
jne 0xa2d369
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0xc0000000
jmp 0xa2d39f
test al, 2
je 0xa2d377
mov dword [esp + 0x10], 0xc0000000
jmp 0xa2d383
test al, 1
je 0xa2d383
mov dword [esp + 0x10], 0x40000000
test ah, 0x10
je 0xa2d38c
mov dword [esp + 0x14], ecx
test al, 0x30
je 0xa2d392
mov ebp, ecx
test al, 0x20
je 0xa2d399
and ebp, 0xfffffffd
test al, 0x10
je 0xa2d39f
xor ebp, ebp
mov al, byte [esi]
mov edi, dword [esp + 0x77c]
xor edx, edx
mov ecx, esi
test al, al
je 0xa2d3c9
cmp al, 0x2f
je 0xa2d3b8
cmp al, 0x5c
jne 0xa2d3bd
mov edx, 1
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0xa2d3b0
test edx, edx
jne 0xa2d436
lea edx, [esp + 0x1c]
lea eax, [esp + 0x238]
push edx
push eax
push 0x104
push 0
push esi
push 0
call fcn.009e9010
mov ecx, dword [0xaa2204]
test eax, eax
mov edx, dword [ecx]
je 0xa2d41c
shr edx, 0x15
test dl, 1
je 0xa2d413
test edi, edi
je 0xa2d413
lea eax, [esp + 0x238]
push eax
push str._SearchPathA___s_
push edi
call fcn.00a16060
add esp, 0xc
lea esi, [esp + 0x238]
jmp 0xa2d436
shr edx, 0x15
test dl, 1
je 0xa2d436
test edi, edi
je 0xa2d436
push str.__SearchPathA_failed_
push edi
call fcn.00a16060
add esp, 8
push esi
lea ecx, [esp + 0x340]
call fcn.00a15040
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 8]
lea ecx, [esp + 0x18]
push edi
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0x80
push edx
push 0
push ebp
push ecx
push eax
mov byte [esp + 0x788], 2
call fcn.00a2b060
test al, al
lea ecx, [esp + 0x33c]
mov byte [esp + 0x764], 0
sete bl
call fcn.00a155e0
test bl, bl
je 0xa2d4aa
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0
push 0x80
push edx
push 0
push ebp
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x54c]
call fcn.00a155c0
push esi
lea ecx, [esp + 0x340]
mov byte [esp + 0x768], 3
call fcn.00a15040
mov eax, dword [eax + 8]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x54c]
push ecx
push edx
push eax
mov byte [esp + 0x770], 4
call fcn.009ef8b0
add esp, 0xc
lea ecx, [esp + 0x33c]
mov byte [esp + 0x764], 3
call fcn.00a155e0
mov eax, dword [esp + 0x770]
mov ecx, dword [esp + 0x554]
push 0
push 0
add eax, 8
push 0x80
or esi, 0xffffffff
push eax
push esi
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esp + 0x18], esi
jne 0xa2d547
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x770]
mov dword [esp + 0x18], esi
mov word [edx + 2], ax
jmp 0xa2d560
mov eax, dword [esp + 0x770]
push 0
mov word [eax + 2], 0
mov byte [eax + 1], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x778]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x764], 0
mov dword [eax], ecx
lea ecx, [esp + 0x54c]
call fcn.00a155e0
mov dword [esp + 0x764], esi
jmp 0xa2d5aa
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x778]
mov dword [esp + 0x764], 0xffffffff
mov dword [edx], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00a155e0
mov ecx, dword [esp + 0x75c]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x758
ret 0x14