Function at 0x422e20
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x422e36
xor eax, eax
jmp 0x42303a
mov ax, word [0x49b22c]
mov word [ebp - 0x20], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x600], ecx
mov dword [ebp - 0x34], 0
jmp 0x422e8c
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov cl, byte [ebp - 0x20]
add cl, 1
mov byte [ebp - 0x20], cl
mov edx, dword [ebp - 0x24]
shr edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x28]
jae 0x423035
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx], 0
mov eax, dword [ebp - 0x24]
and eax, 1
jne 0x422eb8
jmp 0x422e72
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx], 1
lea eax, [ebp - 0x20]
push eax
push str._s:_
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x604]
imul edx, edx, 0x30
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx + 4]
push ecx
call fcn.0043d4bb
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x604]
imul edx, edx, 0x30
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + edx + 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + ecx + 0x28]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
sub ecx, 2
mov dword [ebp - 0x78], ecx
cmp dword [ebp - 0x78], 4
ja case.default.0x422f4c
mov edx, dword [ebp - 0x78]
jmp dword [edx*4 + 0x423041]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x604], ecx
jmp case.default.0x422f4c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x2c]
lea eax, [edx + ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
imul ecx, ecx, 0x30
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [edx + ecx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [edx + ecx + 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
sbb ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x604]
imul edx, edx, 0x30
mov esi, dword [ebp - 0x2c]
mov dword [esi + edx + 0x20], eax
mov dword [esi + edx + 0x24], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
imul ecx, ecx, 0x30
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x604]
imul eax, eax, 0x30
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
mov edi, dword [edx + ecx + 0x10]
sub edi, dword [esi + eax + 0x20]
mov ecx, dword [edx + ecx + 0x14]
sbb ecx, dword [esi + eax + 0x24]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x604]
imul eax, eax, 0x30
mov edx, dword [ebp - 0x2c]
mov dword [edx + eax + 0x18], edi
mov dword [edx + eax + 0x1c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x604]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x604], ecx
jmp 0x422e72
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret