Function at 0x5c228c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x17
push 0
push 0
dec ecx
jne 0x5c2295
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405168
mov eax, dword [ebp - 8]
call fcn.00405168
xor eax, eax
push ebp
push 0x5c2895
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebx], eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004ef37c
call fcn.0040cf40
fstp qword [ebp - 0x20]
wait
fld qword [ebp - 0x30]
fcomp dword [0x5c28a8]
fnstsw ax
sahf
jbe 0x5c23a1
mov eax, dword [ebp - 4]
call fcn.005bffe4
cmp edx, 0
jne 0x5c2310
cmp eax, 0
jbe 0x5c23a1
jmp 0x5c2316
jle 0x5c23a1
fld xword [0x5c28ac]
fsubr qword [ebp - 0x20]
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jae 0x5c2352
fld qword [ebp - 0x20]
fsub qword [ebp - 0x30]
fmul dword [0x5c28b8]
fmul dword [0x5c28bc]
call fcn.00403028
mov dword [ebx], eax
cmp dword [ebx], 0
jge 0x5c286a
xor eax, eax
mov dword [ebx], eax
jmp 0x5c286a
fld qword [ebp - 0x20]
fsub qword [ebp - 0x30]
fmul dword [0x5c28b8]
fmul dword [0x5c28bc]
call fcn.00403028
mov dword [ebx], eax
cmp dword [ebx], 0
jge 0x5c2374
xor eax, eax
mov dword [ebx], eax
push 1
mov eax, dword [ebx]
push eax
mov eax, dword [0x698204]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
call fcn.00405178
mov esi, eax
push esi
push 0x5c28c0
push 0x5c28c4
mov eax, dword [0x698204]
push esi
call fcn.00550e5c
push 0xffffffffffffffff
mov eax, dword [0x6e4f8c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 4]
call fcn.0040b5ac
mov eax, dword [ebp - 8]
call fcn.0040b5ac
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41cc64]
call fcn.00422090
call fcn.00403e80
call fcn.0040cf40
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
call fcn.005bfd64
mov edx, 0x5c28d8
mov eax, dword [ebp - 8]
call fcn.004eede8
mov eax, dword [0x6e4f8c]
push eax
call sub.kernel32.dll_ReleaseMutex
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x5bf9e0]
call fcn.005c1928
mov esi, eax
mov edx, 0x5c28e4
mov eax, esi
call fcn.005c1bf0
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0x44]
call fcn.004f09fc
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0040f8f8
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.004f0204
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x4c]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.004317d8
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.0040f8f8
lea eax, [ebp - 0x48]
mov edx, 0x5c28f4
call fcn.00404f88
mov edx, dword [ebp - 0x48]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x54]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.004317d8
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.0040f8f8
lea eax, [ebp - 0x50]
mov edx, 0x5c2904
call fcn.00404f88
mov edx, dword [ebp - 0x50]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x5c]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.00433058
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.0040f8f8
lea eax, [ebp - 0x58]
mov edx, 0x5c2914
call fcn.00404f88
mov edx, dword [ebp - 0x58]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x64]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.00433058
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.0040f8f8
lea eax, [ebp - 0x60]
mov edx, 0x5c2940
call fcn.00404f88
mov edx, dword [ebp - 0x60]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x6c]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.00430fa8
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.0040f8f8
lea eax, [ebp - 0x68]
mov edx, 0x5c2940
call fcn.00404f88
mov edx, dword [ebp - 0x68]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x74]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.00430fa8
mov eax, dword [ebp - 0x74]
lea edx, [ebp - 0x70]
call fcn.0040f8f8
lea eax, [ebp - 0x70]
mov edx, 0x5c2914
call fcn.00404f88
mov edx, dword [ebp - 0x70]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x7c]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.00433570
mov eax, dword [ebp - 0x7c]
lea edx, [ebp - 0x78]
call fcn.0040f8f8
lea eax, [ebp - 0x78]
mov edx, 0x5c2940
call fcn.00404f88
mov edx, dword [ebp - 0x78]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x84]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.00433570
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.0040f8f8
lea eax, [ebp - 0x80]
mov edx, 0x5c2914
call fcn.00404f88
mov edx, dword [ebp - 0x80]
mov eax, esi
call fcn.005c21ec
lea edx, [ebp - 0x8c]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.004317d8
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.0040f8f8
lea eax, [ebp - 0x88]
mov edx, 0x5c296c
call fcn.00404f88
mov edx, dword [ebp - 0x88]
mov eax, esi
call fcn.005c21ec
lea eax, [ebp - 0x90]
call fcn.005c0ca0
mov edx, dword [ebp - 0x90]
mov eax, esi
call fcn.005c21ec
mov dl, 1
mov eax, dword [0x41ca64]
call fcn.00403e50
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
call fcn.005c0734
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5c2697
inc ebx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x94]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x94]
mov edx, 0x5c2980
call fcn.00404f88
mov edx, dword [ebp - 0x94]
mov eax, esi
call fcn.005c21ec
inc dword [ebp - 0x14]
dec ebx
jne 0x5c2663
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x10]
call fcn.005c01a4
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5c2755
inc ebx
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0xa0]
mov eax, dword [0x69800c]
mov eax, dword [eax]
call fcn.00433570
mov eax, dword [ebp - 0xa0]
lea edx, [ebp - 0x9c]
call fcn.0040f8f8
push dword [ebp - 0x9c]
push 0x5c2990
lea ecx, [ebp - 0xac]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xac]
lea edx, [ebp - 0xa8]
call fcn.0040f94c
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.0040b838
push dword [ebp - 0xa4]
push 0x5c2980
lea eax, [ebp - 0x98]
mov edx, 4
call fcn.00405040
mov edx, dword [ebp - 0x98]
mov eax, esi
call fcn.005c21ec
inc dword [ebp - 0x14]
dec ebx
jne 0x5c26c2
mov eax, dword [ebp - 0x10]
call fcn.00403e80
mov bl, 0x63
lea eax, [ebp - 0xb0]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0xb0]
mov edx, 0x5c29b4
call fcn.00404f88
mov eax, dword [ebp - 0xb0]
call fcn.00405178
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x5c2859
lea eax, [ebp - 0xb4]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0xb4]
mov edx, 0x5c29b4
call fcn.00404f88
mov edx, dword [ebp - 0xb4]
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xb8]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0xb8]
mov edx, 0x5c29c0
call fcn.00404f88
mov edx, dword [ebp - 0xb8]
mov eax, esi
call fcn.005c21ec
lea eax, [ebp - 0xbc]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0xbc]
mov edx, 0x5c29d4
call fcn.00404f88
mov edx, dword [ebp - 0xbc]
mov eax, esi
call fcn.005c21ec
lea eax, [ebp - 0xc0]
mov edx, ebx
call fcn.00404e8c
lea eax, [ebp - 0xc0]
mov edx, 0x5c29e8
call fcn.00404f88
mov edx, dword [ebp - 0xc0]
mov eax, esi
call fcn.005c21ec
mov eax, dword [0x69851c]
cmp byte [eax], 0
je 0x5c2850
mov byte [0x697a60], 1
cmp byte [0x697a60], 0
jne 0x5c2863
inc ebx
cmp bl, 0x7b
jne 0x5c275f
mov eax, esi
call fcn.00429b84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c289c
lea eax, [ebp - 0xc0]
mov edx, 0x22
call fcn.00404cd0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cd0
ret