Function at 0x10021c39
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 8
call fcn.100abdd1
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x100d42b8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 1
lea eax, [ebp - 4]
push eax
call fcn.10021eda
mov ebx, dword [ebp - 4]
call fcn.10002428
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10021e0b
mov ebx, dword [ebp - 4]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x10021cbc
push 0x84
push 0x4031b69
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10021cd9
push 0x84
push 0x4031b69
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
push 0x100dc9a0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
mov ecx, 2
call fcn.100010a5
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x10021d27
push 0x84
push 0x4031b69
push 6
call fcn.100abddd
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10021d3a
push ebx
call fcn.100abdd7
add esp, 4
cmp dword [ebp - 0x1c], 2
je 0x10021e03
mov ebx, dword [ebp - 4]
call fcn.10001d16
push ebx
push ecx
mov eax, dword [ebp - 8]
dec eax
jns 0x10021d6b
push 0xfd
push 0x4031b69
push 4
call fcn.100abddd
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10021d88
push 0xfd
push 0x4031b69
push 1
call fcn.100abddd
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
push 0x100dc9a0
mov ebx, dword [ebp - 0x10]
push dword [ebx]
mov ecx, 2
call fcn.100010a5
add esp, 8
mov dword [ebp - 0x14], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10021dbd
mov eax, 0x100d424e
push eax
push 1
mov ebx, 0x218
call fcn.100b27f0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10021de3
push ebx
call fcn.100abdd7
add esp, 4
fild dword [ebp - 0xc]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10001713
mov dword [ebp - 0xc], eax
pop eax
pop ebx
pop ecx
jmp 0x10021c87
add esp, 0xc
fild dword [ebp - 0xc]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fdiv qword [0x100dc543]
fstp qword [ebp - 0x1c]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 2
mov ebx, 0x68
call fcn.100b0360
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.100acd80
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x100dc54e
push dword [ebp - 0x28]
mov ecx, 2
call fcn.100010a5
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x10021e87
push ebx
call fcn.100abdd7
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x10021e8f
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10021eae
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10021eaa
imul eax, dword [ebx]
jmp 0x10021e9f
mov ecx, eax
test ecx, ecx
je 0x10021ecd
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x10021ec6
push ebx
push eax
call fcn.100abdd7
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10021eb4
call fcn.100abdd7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret