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

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 8]
test eax, eax
jne 0x4b5905
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push 1
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x2c]
push esi
push eax
push ecx
call fcn.00515c10
add esp, 0x18
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4b5916
mov eax, 2
pop esi
add esp, 0x18
ret
mov ecx, dword [eax + 0x1c]
push edi
mov edi, 1
cmp ecx, edi
je 0x4b592b
mov eax, edi
pop edi
pop esi
add esp, 0x18
ret
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4b5d7b
mov edx, dword [eax]
push ebx
push ebp
push edx
call fcn.00515900
mov ebx, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x4b5a0c
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov byte [ebx + 0x103], 0
mov byte [ebx + 0x104], 0
mov eax, dword [esi + 0x40]
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
push ecx
call fcn.005cbe51
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
mov ecx, ebx
ja 0x4b59d8
cmp byte [ebx], 0
jne 0x4b5996
mov dword [esp + 0x10], 0
jmp 0x4b59bb
mov eax, ecx
lea esi, [eax + 1]
jmp 0x4b59a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b59a0
sub eax, esi
lea ecx, [ecx + eax + 1]
cmp byte [ecx], 0
je 0x4b59bb
inc dword [esp + 0x10]
cmp byte [ecx], 0
jne 0x4b5996
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
push edx
push 0x5e6a4c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4b5d79
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jae 0x4b5a03
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4b59e5
sub edx, esi
mov al, byte [ecx + edx + 1]
test al, al
lea ecx, [ecx + edx + 1]
je 0x4b5a03
inc ebp
cmp ebp, edi
mov dword [esp + 0x10], ebp
jb 0x4b59e0
movzx ecx, byte [ecx]
push ecx
jmp 0x4b5af0
mov edx, dword [esi + 0x40]
mov eax, dword [edx]
push eax
call fcn.00551fa0
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push 2
push 0x5ebf7c
push edx
call fcn.005e325e
add esp, 0x10
test eax, eax
jne 0x4b5ab3
mov eax, dword [esi + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, esi
nop
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4b5a40
lea ecx, [esi + 2]
push 0x5c
push ecx
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x4b5a97
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4b5b03
push 0x5c
push eax
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x4b5a80
mov byte [eax + 1], 0
jmp 0x4b5b03
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4b5a83
mov dx, word [0x5e9ad8]
mov word [edi], dx
jmp 0x4b5b03
mov edi, esi
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4b5aa0
mov ax, word [0x5e9ad8]
mov word [edi], ax
jmp 0x4b5b03
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push 2
push edx
call fcn.00425b60
add esp, 8
test eax, eax
je 0x4b5ae7
mov eax, dword [esi + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, esi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4b5ad2
push esi
call fcn.00426aa0
add esp, 4
jmp 0x4b5b03
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
movzx eax, byte [edx]
push eax
mov esi, dword [esp + 0x40]
push str._c:_
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [esp + 0x34]
mov ebp, eax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4b5d1c
mov edx, ecx
mov eax, dword [edx]
push 0x2e
push eax
call fcn.005ccc30
mov edi, eax
add esp, 8
test edi, edi
je 0x4b5d1c
cmp ebp, 1
jbe 0x4b5d79
push str..label
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b5b76
push 0x3e7
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x4c]
push 0x3e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
jmp 0x4b5d79
push str..unc
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b5bb1
push esi
push ebx
call fcn.00575500
add esp, 8
test eax, eax
je 0x4b5d79
mov edx, dword [esp + 0x38]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b5ba2
jmp 0x4b5d79
push str..free
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b5be3
push eax
push esi
call fcn.00424670
mov ecx, dword [esp + 0x40]
push edx
push eax
push str._I64Ld
push ecx
call fcn.005cc759
add esp, 0x18
jmp 0x4b5d79
push str..size
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b5c16
push 1
push esi
call fcn.00424670
push edx
mov edx, dword [esp + 0x44]
push eax
push str._I64Ld
push edx
call fcn.005cc759
add esp, 0x18
jmp 0x4b5d79
push str..type
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b5cf3
cmp ebp, 2
jne 0x4b5c56
mov ecx, dword [str.removable]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov edx, dword [0x5ebf54]
mov dword [eax + 4], edx
mov cx, word [0x5ebf58]
mov word [eax + 8], cx
jmp 0x4b5d79
cmp ebp, 3
jne 0x4b5c76
mov eax, dword [str.fixed]
mov edx, dword [esp + 0x38]
mov dword [edx], eax
mov cx, word [0x5ebf4c]
mov word [edx + 4], cx
jmp 0x4b5d79
cmp ebp, 4
jne 0x4b5c9e
mov eax, dword [str.remote]
mov edx, dword [esp + 0x38]
mov dword [edx], eax
mov cx, word [0x5e8f14]
mov word [edx + 4], cx
mov al, byte [0x5e8f16]
mov byte [edx + 6], al
jmp 0x4b5d79
cmp ebp, 5
jne 0x4b5cbe
mov edx, dword [str.cdrom]
mov ecx, dword [esp + 0x38]
mov dword [ecx], edx
mov ax, word [0x5ebf44]
mov word [ecx + 4], ax
jmp 0x4b5d79
cmp ebp, 6
mov eax, dword [esp + 0x38]
jne 0x4b5cdd
mov ecx, dword [str.ramdisk]
mov dword [eax], ecx
mov edx, dword [0x5ebf38]
mov dword [eax + 4], edx
jmp 0x4b5d79
mov ecx, dword [0x5e6984]
mov dword [eax], ecx
mov edx, dword [0x5e6988]
mov dword [eax + 4], edx
jmp 0x4b5d79
push str..path
push edi
call fcn.005e31f5
add esp, 8
test eax, eax
jne 0x4b5d79
mov edx, dword [esp + 0x38]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b5d10
jmp 0x4b5d79
cmp ebp, 1
jbe 0x4b5d59
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4b5d59
mov ecx, dword [str._true]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov dx, word [0x5e6a28]
mov word [eax + 4], dx
jmp 0x4b5d79
mov ecx, dword [str._false]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov dx, word [0x5e6a18]
mov word [eax + 4], dx
mov cl, byte [0x5e6a1a]
mov byte [eax + 6], cl
pop ebp
pop ebx
mov edi, dword [esp + 0x2c]
mov eax, dword [edi + 8]
test eax, eax
jle 0x4b5dae
mov esi, dword [esp + 0x28]
lea ebx, [ebx]
mov edx, dword [edi + 0x40]
mov eax, dword [esi]
push edx
push eax
call fcn.004e3140
mov dword [esi], eax
mov ecx, dword [edi + 8]
add esp, 8
dec ecx
mov eax, ecx
test eax, eax
mov dword [edi + 8], ecx
jg 0x4b5d90
mov dword [edi + 8], 0
pop edi
mov eax, 2
pop esi
add esp, 0x18
ret