Function at 0x4aaff0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x527278
mov eax, dword fs:[0]
push eax
sub esp, 0x958
mov eax, dword [0x597f54]
xor eax, esp
mov dword [esp + 0x954], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x96c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x97c]
mov ebx, dword [esp + 0x980]
mov edx, dword [esp + 0x98c]
mov ebp, dword [esp + 0x988]
mov dword [esp + 0x18], eax
mov esi, ecx
mov ecx, dword [esp + 0x984]
mov eax, 1
mov dword [esp + 0x20], 0
test byte [0x59b2d8], al
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
jne 0x4ab0a6
or dword [0x59b2d8], eax
push 0x52db7c
mov ecx, 0x59b2d4
mov dword [esp + 0x978], eax
call fcn.00401534
push 0x52c3d0
call fcn.004e2c55
add esp, 4
mov byte [esp + 0x974], 0
push 0x52db7c
lea ecx, [esp + 0x18]
call fcn.00401534
lea ecx, [esp + 0x34]
mov dword [esp + 0x974], 2
call fcn.00405829
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x16c]
push ecx
push ebp
lea edi, [esi + 0x54]
push edx
push ebx
mov ecx, edi
mov byte [esp + 0x988], 3
mov dword [esp + 0x44], 0x800
mov dword [esp + 0x54], edi
call fcn.004aacc0
test eax, eax
je 0x4ab1e8
lea eax, [esp + 0x168]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab110
sub eax, edx
push eax
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401452
test ebp, ebp
jne 0x4ab135
xor eax, eax
jmp 0x4ab14b
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab140
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.00402c69
mov ecx, dword [esp + 0x14]
push 0
push ecx
call fcn.004e434a
add esp, 8
test eax, eax
jne 0x4ab1e8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004861a0
add esp, 8
test eax, eax
je 0x4ab1e8
test byte [esp + 0x58], 0x18
jne 0x4ab1e8
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x59b2d4
call fcn.00402e5a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004021f1
mov esi, dword [esp + 0x1c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], 1
mov byte [esp + 0x974], 2
call fcn.00405846
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x974], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4ab904
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x16c]
push edx
push 0x543040
push str.location
push str.default
mov ecx, edi
mov dword [esp + 0x44], 0x800
call fcn.004aacc0
test eax, eax
je 0x4ab2f2
lea eax, [esp + 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab225
sub eax, edx
push eax
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401452
test ebp, ebp
jne 0x4ab24a
xor eax, eax
jmp 0x4ab25b
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab250
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.00402c69
mov ecx, dword [esp + 0x14]
push 0
push ecx
call fcn.004e434a
add esp, 8
test eax, eax
jne 0x4ab2f2
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004861a0
add esp, 8
test eax, eax
je 0x4ab2f2
test byte [esp + 0x58], 0x18
jne 0x4ab2f2
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x168]
push ecx
push ebp
push edx
push ebx
mov ecx, edi
call fcn.004aae70
lea eax, [esp + 0x14]
push eax
mov ecx, 0x59b2d4
call fcn.00402e5a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004021f1
mov esi, dword [esp + 0x1c]
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi], eax
mov dword [esp + 0x20], 1
mov byte [esp + 0x974], 2
call fcn.00405846
jmp 0x4ab8e8
mov eax, dword [0x59b2d4]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4ab50a
push 1
push eax
lea ecx, [esp + 0x148]
call fcn.00402d1c
mov ecx, dword [esp + 0x140]
mov ecx, dword [ecx + 4]
mov bl, 4
push ebp
lea ecx, [esp + ecx + 0x144]
mov byte [esp + 0x978], bl
call fcn.004854e0
mov eax, dword [esp + 0x140]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + ecx + 0x144]
call fcn.00485c60
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ab36c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x140]
mov edx, dword [ecx + 4]
mov edx, dword [esp + edx + 0x144]
test edx, edx
jne 0x4ab385
xor eax, eax
jmp 0x4ab39b
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab390
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401452
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.004e434a
add esp, 8
test eax, eax
jne 0x4ab4f6
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.004861a0
add esp, 8
test eax, eax
je 0x4ab4f6
test byte [esp + 0x58], 0x18
jne 0x4ab4f6
mov ecx, dword [esp + 0x140]
mov ecx, dword [ecx + 4]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + ecx + 0x144]
call fcn.00485600
mov eax, dword [eax]
sub eax, 0x10
push eax
mov byte [esp + 0x978], 5
call fcn.004021f1
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x44], esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x974], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ab442
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push esi
push ebp
push ecx
push edx
mov ecx, edi
call fcn.004aae70
lea eax, [esp + 0x14]
push eax
mov ecx, 0x59b2d4
call fcn.00402e5a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004021f1
mov ecx, dword [esp + 0x1c]
add eax, 0x10
mov dword [ecx], eax
lea eax, [esi - 0x10]
add esp, 4
mov dword [esp + 0x20], 1
mov byte [esp + 0x974], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ab4a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14c]
call fcn.0040290f
lea ecx, [esp + 0x34]
mov byte [esp + 0x974], 2
call fcn.00405846
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x974], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ab4ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
jmp 0x4ab912
lea ecx, [esp + 0x14c]
mov byte [esp + 0x974], 3
call fcn.0040290f
mov ecx, 6
mov esi, 0x543010
lea edi, [esp + 0x140]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [esp + 0x40]
fld1
mov esi, 2
mov dword [esp + 0x44], eax
mov edi, esi
test esi, esi
fld qword [0x535a00]
mov eax, esi
jge 0x4ab545
neg eax
fld st(1)
test al, 1
je 0x4ab54d
fmul st(1)
shr eax, 1
je 0x4ab557
fld st(1)
fmulp st(2)
jmp 0x4ab547
test esi, esi
fstp st(1)
jge 0x4ab55f
fdivr st(1)
mov edx, dword [esp + 0x44]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x5c], eax
fldcw word [esp + 0x5c]
fistp qword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
test edx, ecx
fldcw word [esp + 0x1c]
je 0x4ab66c
movsx eax, byte [esp + esi + 0x140]
fstp st(0)
push eax
lea ecx, [esp + 0x16c]
push str._c:_
push ecx
call fcn.004e8739
add esp, 0xc
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4ab5e0
lea eax, [esp + 0x168]
push eax
push 0x543040
push str.location
push str.default
mov ecx, ebx
call fcn.004aae70
mov edi, esi
lea eax, [esp + 0x168]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab5f0
sub eax, edx
push eax
lea ecx, [esp + 0x16c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401452
test ebp, ebp
jne 0x4ab615
xor eax, eax
jmp 0x4ab62b
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4ab620
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x1c]
call fcn.00402c69
mov edx, dword [esp + 0x14]
push 0
push edx
call fcn.004e434a
add esp, 8
test eax, eax
jne 0x4ab66a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.004861a0
add esp, 8
test eax, eax
je 0x4ab66a
test byte [esp + 0x58], 0x18
je 0x4ab722
fld1
add esi, 1
cmp esi, 0x1b
jb 0x4ab537
movsx ecx, byte [esp + edi + 0x140]
fstp st(0)
push ecx
lea edx, [esp + 0x16c]
push str._c:_
push edx
call fcn.004e8739
mov eax, dword [ebx]
mov edx, dword [esp + 0x34]
add esp, 0xc
push eax
push ebp
lea ecx, [esp + 0x170]
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.004b0220
lea ecx, [esp + 0x64]
mov byte [esp + 0x974], 8
call fcn.004c2ee4
cmp eax, 1
jne 0x4ab7cd
lea esp, [esp]
mov ecx, dword [esp + 0xdc]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4ab754
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4ab746
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4ab746
push eax
call fcn.004021f1
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4ab715
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x40]
jmp 0x4ab754
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x168]
push edx
push ebp
push eax
push ecx
mov ecx, ebx
call fcn.004aae70
lea edx, [esp + 0x14]
push edx
jmp 0x4ab2b1
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401452
mov ecx, dword [esp + 0x14]
push 0
push ecx
call fcn.004e434a
add esp, 8
test eax, eax
jne 0x4ab788
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.004861a0
add esp, 8
test eax, eax
je 0x4ab788
test byte [esp + 0x58], 0x18
je 0x4ab835
lea ecx, [esp + 0x64]
mov byte [esp + 0x974], 3
call fcn.004a9400
mov ecx, dword [ebx]
mov eax, dword [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x170]
push edx
push eax
lea ecx, [esp + 0x74]
call fcn.004b0220
lea ecx, [esp + 0x64]
mov byte [esp + 0x974], 8
call fcn.004c2ee4
cmp eax, 1
je 0x4ab6d0
lea ecx, [esp + 0x64]
mov byte [esp + 0x974], 3
call fcn.004a9400
push 0
push 0x52db7c
lea ecx, [esp + 0x1c]
call fcn.00401452
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004021f1
mov esi, dword [esp + 0x1c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x34], vtable.XFileSys.0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x974], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4ab8b4
mov ecx, dword [esp + 0xd8]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push ecx
push ebp
push edx
push eax
mov ecx, ebx
call fcn.004aae70
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x59b2d4
call fcn.00402e5a
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004021f1
mov esi, dword [esp + 0x1c]
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esi], eax
mov dword [esp + 0x20], 1
mov byte [esp + 0x974], 3
call fcn.004a9400
mov dword [esp + 0x34], vtable.XFileSys.0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x974], 9
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ab8c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x974], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ab8e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x974], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ab910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x96c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x954]
xor ecx, esp
call fcn.004e2867
add esp, 0x964
ret 0x14