Function at 0x4228e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445a64
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x454100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
test esi, esi
je 0x422935
mov eax, dword [edi]
dec esi
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x422931
push dword [ebx]
call fcn.0044037e
push 0xc
push ebx
call fcn.004403b3
add esp, 0xc
test esi, esi
jne 0x422915
push 0
push 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
test ebx, ebx
jne 0x422953
xor al, al
jmp 0x422ade
mov ecx, 2
mov eax, ebx
mul ecx
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.004403c1
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
push esi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x422ad1
cmp eax, ebx
ja 0x422ad1
xor eax, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.0041f130
mov ecx, dword [ebp - 0x28]
xor edx, edx
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x422abf
mov ebx, 2
mov dword [ebp - 0x30], 4
mov edi, edi
cmp word [esi + ebx - 2], 0
jne 0x422aad
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041f260
mov eax, dword [ebp - 0x20]
mov edx, dword [edi + 8]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ebx
cmp dword [edi + 4], edx
jne 0x422a62
cmp edx, 0x7fffffff
jae 0x422afa
mov eax, edx
mov ecx, SysReAllocString
shr eax, 2
sub ecx, edx
inc eax
cmp eax, ecx
jbe 0x422a19
mov eax, ecx
add eax, edx
mov dword [ebp - 0x38], eax
mul dword [ebp - 0x30]
setb cl
movsx ecx, cl
neg ecx
or ecx, eax
push ecx
call fcn.004403c1
mov ecx, dword [edi + 4]
add esp, 4
mov dword [ebp - 0x34], eax
test ecx, ecx
je 0x422a4d
shl ecx, 2
push ecx
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push dword [edi]
call fcn.0044037e
mov eax, dword [ebp - 0x34]
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 8], eax
push 0xc
call fcn.00440383
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x422a90
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0041efc0
mov edx, eax
jmp 0x422a92
xor edx, edx
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 1
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
inc eax
add ebx, 2
mov dword [ebp - 0x20], eax
cmp eax, ecx
jb 0x4229d0
mov edx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
cmp edx, ecx
sete bl
call fcn.0044037e
add esp, 4
jmp 0x422ad3
xor bl, bl
push esi
call fcn.0044037e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440370
mov esp, ebp
pop ebp
ret
push 0x451eec
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x7e5
push eax
call sub.msvcrt.dll__CxxThrowException
int3