Function at 0x51036c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x510374
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov ebx, 0x5231e0
xor eax, eax
push ebp
push 0x510959
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [0x52321c], eax
mov dl, 1
mov eax, dword [0x41717c]
call fcn.004039ac
mov dword [0x5231f8], eax
mov al, 0x41
call fcn.00510ad0
test al, al
je 0x5103c7
mov dword [0x5231d8], 0x19
jmp 0x5103e8
mov al, 0x42
call fcn.00510ad0
test al, al
je 0x5103de
mov dword [0x5231d8], 0x18
jmp 0x5103e8
mov dword [0x5231d8], 0x17
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x510970
mov edx, 0x510984
mov eax, dword [0x523210]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x10]
mov edx, 0x510998
call fcn.00404b38
jne 0x51049f
mov esi, dword [0x5231d8]
test esi, esi
jl 0x510501
inc esi
mov dword [ebx], 0
mov ecx, 0x19
sub ecx, dword [ebx]
mov eax, 1
shl eax, cl
and eax, dword [0x52321c]
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x510498
lea eax, [ebp - 0x14]
mov dl, 0x5a
sub dl, byte [ebx]
call fcn.00404914
lea eax, [ebp - 0x14]
mov edx, 0x5109a4
call fcn.004049f4
mov eax, dword [ebp - 0x14]
call fcn.00404bec
mov dword [0x523218], eax
mov eax, dword [0x523218]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x510498
lea eax, [ebp - 0x18]
mov edx, dword [0x523218]
call fcn.00404924
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5231f8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebx]
dec esi
jne 0x510429
jmp 0x510501
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x510970
mov edx, 0x510984
mov eax, dword [0x523210]
mov esi, dword [eax]
call dword [esi]
mov edx, dword [ebp - 0x1c]
mov eax, 0x5109b0
call fcn.00404d30
test eax, eax
jle 0x510501
mov eax, dword [0x5231f8]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x510970
mov edx, 0x510984
mov eax, dword [0x523210]
mov esi, dword [eax]
call dword [esi]
mov eax, dword [ebp - 0x20]
call fcn.00404bec
mov ecx, eax
mov edx, 0x5109b4
mov eax, 0x5109d4
call fcn.00418f4c
mov esi, dword [0x5231d8]
test esi, esi
jl 0x510627
inc esi
mov dword [ebx], 0
mov ecx, 0x19
sub ecx, dword [ebx]
mov eax, 1
shl eax, cl
and eax, dword [0x52321c]
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x51061e
lea eax, [ebp - 0x24]
mov dl, 0x5a
sub dl, byte [ebx]
call fcn.00404914
lea eax, [ebp - 0x24]
mov edx, 0x5109a4
call fcn.004049f4
mov eax, dword [ebp - 0x24]
call fcn.00404bec
mov dword [0x523218], eax
mov eax, dword [0x523218]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x5105be
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x5109fc
mov edx, 0x510984
mov eax, dword [0x523210]
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x28]
mov edx, 0x510998
call fcn.00404b38
jne 0x5105be
mov al, 0x5a
sub al, byte [ebx]
call fcn.00510ad0
test al, al
je 0x5105be
lea eax, [ebp - 0x2c]
mov edx, dword [0x523218]
call fcn.00404924
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x5231f8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [0x523218]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x51061e
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x510a10
mov edx, 0x510984
mov eax, dword [0x523210]
mov edi, dword [eax]
call dword [edi]
mov eax, dword [ebp - 0x30]
mov edx, 0x510998
call fcn.00404b38
jne 0x51061e
mov al, 0x5a
sub al, byte [ebx]
call fcn.00510ad0
test al, al
je 0x51061e
lea eax, [ebp - 0x34]
mov edx, dword [0x523218]
call fcn.00404924
mov edx, dword [ebp - 0x34]
mov eax, dword [0x5231f8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebx]
dec esi
jne 0x510516
xor eax, eax
mov dword [0x5231d4], eax
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x510a24
mov edx, 0x510984
mov eax, dword [0x523210]
mov ebx, dword [eax]
call dword [ebx]
mov edx, dword [ebp - 0x38]
mov eax, 0x5109b0
call fcn.00404d30
test eax, eax
jle 0x5107f9
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5107f9
mov dl, 1
mov eax, dword [0x41717c]
call fcn.004039ac
mov dword [0x5231fc], eax
mov dl, 1
mov eax, dword [0x41717c]
call fcn.004039ac
mov dword [0x523200], eax
mov eax, dword [0x5231fc]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x510a24
mov edx, 0x510984
mov eax, dword [0x523210]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x3c]
call fcn.00404bec
mov ecx, eax
mov edx, 0x5109b4
mov eax, 0x5109d4
call fcn.00418f4c
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [0x5231fc]
mov edx, dword [eax]
call dword [edx + 0x14]
imul ebx, eax
test ebx, ebx
je 0x51071e
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fdivr dword [0x510a30]
fstp xword [ebp - 0x4c]
wait
mov eax, dword [0x5231fc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x50], eax
fild dword [ebp - 0x50]
fld xword [ebp - 0x4c]
fmulp st(1)
call fcn.00402ba8
mov dword [0x5231d4], eax
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x5107d5
inc esi
xor ebx, ebx
mov eax, dword [0x5231fc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x5107cd
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x54]
mov edx, ebx
mov eax, dword [0x5231f8]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 8]
mov eax, dword [0x5231fc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x58]
pop eax
call fcn.004049f4
mov eax, dword [ebp - 0x54]
call fcn.00409524
test al, al
je 0x5107c5
lea ecx, [ebp - 0x5c]
mov edx, ebx
mov eax, dword [0x5231f8]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 8]
mov eax, dword [0x5231fc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x60]
pop eax
call fcn.004049f4
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x523200]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x510754
inc ebx
dec esi
jne 0x510736
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x44]
mov edx, dword [0x523200]
mov eax, dword [0x5231f8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x523200]
call fcn.004039dc
push 0
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x510a3c
mov edx, 0x510a50
mov eax, dword [0x523210]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x64]
mov edx, 0x510a64
call fcn.00404b38
jne 0x510849
push 0
lea eax, [ebp - 0x68]
push eax
mov ecx, 0x510a78
mov edx, 0x510a50
mov eax, dword [0x523210]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x68]
mov edx, 0x510a88
call fcn.00404b38
je 0x510853
mov eax, dword [0x5231f8]
call fcn.004039dc
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x51088a
cmp dword [0x5231d4], 0
jne 0x51088a
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x40], eax
fild dword [ebp - 0x40]
fdivr dword [0x510a9c]
call fcn.00402ba8
mov dword [0x5231d4], eax
mov eax, dword [0x5231f8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x510931
inc esi
xor ebx, ebx
push 0x510aa8
lea ecx, [ebp - 0x70]
mov edx, ebx
mov eax, dword [0x5231f8]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x70]
push 0x510abc
lea eax, [ebp - 0x6c]
mov edx, 3
call fcn.00404aac
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
call fcn.00445a68
mov eax, dword [0x52105c]
mov eax, dword [eax]
call fcn.004664c0
lea ecx, [ebp - 0x74]
mov edx, ebx
mov eax, dword [0x5231f8]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0050ff38
lea edx, [ebx + 1]
imul edx, dword [0x5231d4]
add edx, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x304]
call fcn.00488dd0
mov eax, dword [0x52105c]
mov eax, dword [eax]
call fcn.004664c0
inc ebx
dec esi
jne 0x5108a2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510960
lea eax, [ebp - 0x74]
mov edx, 9
call fcn.00404750
lea eax, [ebp - 0x3c]
mov edx, 0xc
call fcn.00404750
ret