Function at 0x4b9c00
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 0x4b9c35
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.0051c6f0
add esp, 0x18
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4b9c46
mov eax, 2
pop esi
add esp, 0x18
ret
mov ecx, dword [eax + 0x1c]
push ebp
mov ebp, 1
cmp ecx, ebp
je 0x4b9c5b
mov eax, ebp
pop ebp
pop esi
add esp, 0x18
ret
mov ecx, dword [eax + 0xc]
test ecx, ecx
push edi
jne 0x4ba0aa
mov edx, dword [eax]
push ebx
push edx
call fcn.0051c3e0
mov ebx, dword [esp + 0x44]
add esp, 4
test eax, eax
je 0x4b9d37
push ebx
xor eax, eax
mov ecx, 0x41a
mov edi, ebx
push 0x1036
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov eax, dword [esi + 0x40]
mov dword [esp + 0x10], ebp
mov ecx, dword [eax]
push ecx
call fcn.005d9a55
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
mov ecx, ebx
ja 0x4b9cff
cmp byte [ebx], 0
jne 0x4b9cc3
mov dword [esp + 0x10], 0
jmp 0x4b9ce3
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4b9cc8
sub eax, esi
lea ecx, [ecx + eax + 1]
cmp byte [ecx], 0
je 0x4b9ce3
inc dword [esp + 0x10]
cmp byte [ecx], 0
jne 0x4b9cc3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
push edx
push 0x5f4a40
push eax
call fcn.005d9929
add esp, 0xc
jmp 0x4ba0a9
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jae 0x4b9d2e
mov edx, ecx
lea esi, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x4b9d10
sub edx, esi
mov al, byte [ecx + edx + 1]
test al, al
lea ecx, [ecx + edx + 1]
je 0x4b9d2e
inc ebp
cmp ebp, edi
mov dword [esp + 0x10], ebp
jb 0x4b9d07
movzx ecx, byte [ecx]
push ecx
jmp 0x4b9e1e
mov edx, dword [esi + 0x40]
mov eax, dword [edx]
push eax
call fcn.0055aba0
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push 2
push 0x5fa254
push edx
call fcn.005f18c9
add esp, 0x10
test eax, eax
jne 0x4b9dda
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 0x4b9d66
lea ecx, [esi + 2]
push 0x5c
push ecx
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x4b9dc4
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4b9e30
push 0x5c
push eax
call fcn.005d9b20
add esp, 8
test eax, eax
je 0x4b9da6
mov byte [eax + 1], 0
jmp 0x4b9e30
mov edi, esi
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4b9db0
mov dx, word [0x5f7b90]
mov word [edi], dx
jmp 0x4b9e30
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4b9dc7
mov ax, word [0x5f7b90]
mov word [edi], ax
jmp 0x4b9e30
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push 2
push edx
call fcn.00424420
add esp, 8
test eax, eax
je 0x4b9e15
mov eax, dword [esi + 0x40]
mov esi, dword [esp + 0x3c]
mov ecx, dword [eax]
mov edx, esi
lea esp, [esp]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4b9e00
push esi
call fcn.004256e0
add esp, 4
jmp 0x4b9e30
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 fcn.005d9929
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 0x4ba04c
mov edx, ecx
mov eax, dword [edx]
push 0x2e
push eax
call fcn.005da7f0
mov edi, eax
add esp, 8
test edi, edi
je 0x4ba04c
cmp ebp, 1
jbe 0x4ba0a9
push str..label
push edi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x4b9ea3
push 0x1036
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x4c]
push 0x1036
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
jmp 0x4ba0a9
push str..unc
push edi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x4b9edf
push esi
push ebx
call fcn.0057fc10
add esp, 8
test eax, eax
je 0x4ba0a9
mov edx, dword [esp + 0x38]
mov eax, ebx
sub edx, ebx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4b9ed0
jmp 0x4ba0a9
push str..free
push edi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x4b9f11
push eax
push esi
call fcn.00423a00
mov ecx, dword [esp + 0x40]
push edx
push eax
push str._I64Ld
push ecx
call fcn.005d9929
add esp, 0x18
jmp 0x4ba0a9
push str..size
push edi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x4b9f44
push 1
push esi
call fcn.00423a00
push edx
mov edx, dword [esp + 0x44]
push eax
push str._I64Ld
push edx
call fcn.005d9929
add esp, 0x18
jmp 0x4ba0a9
push str..type
push edi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x4ba021
cmp ebp, 2
jne 0x4b9f84
mov ecx, dword [str.removable]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov edx, dword [0x5fa22c]
mov dword [eax + 4], edx
mov cx, word [0x5fa230]
mov word [eax + 8], cx
jmp 0x4ba0a9
cmp ebp, 3
jne 0x4b9fa4
mov eax, dword [str.fixed]
mov edx, dword [esp + 0x38]
mov dword [edx], eax
mov cx, word [0x5fa224]
mov word [edx + 4], cx
jmp 0x4ba0a9
cmp ebp, 4
jne 0x4b9fcc
mov eax, dword [str.remote]
mov edx, dword [esp + 0x38]
mov dword [edx], eax
mov cx, word [0x5f6fc0]
mov word [edx + 4], cx
mov al, byte [0x5f6fc2]
mov byte [edx + 6], al
jmp 0x4ba0a9
cmp ebp, 5
jne 0x4b9fec
mov edx, dword [str.cdrom]
mov ecx, dword [esp + 0x38]
mov dword [ecx], edx
mov ax, word [0x5fa21c]
mov word [ecx + 4], ax
jmp 0x4ba0a9
cmp ebp, 6
mov eax, dword [esp + 0x38]
jne 0x4ba00b
mov ecx, dword [str.ramdisk]
mov dword [eax], ecx
mov edx, dword [0x5fa210]
mov dword [eax + 4], edx
jmp 0x4ba0a9
mov ecx, dword [0x5f496c]
mov dword [eax], ecx
mov edx, dword [0x5f4970]
mov dword [eax + 4], edx
jmp 0x4ba0a9
push str..path
push edi
call fcn.005f1860
add esp, 8
test eax, eax
jne 0x4ba0a9
mov edx, dword [esp + 0x38]
mov eax, esi
sub edx, esi
jmp 0x4ba040
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4ba040
jmp 0x4ba0a9
cmp ebp, 1
jbe 0x4ba089
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 0x4ba089
mov ecx, dword [str._true]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov dx, word [0x5f4a14]
mov word [eax + 4], dx
jmp 0x4ba0a9
mov ecx, dword [str._false]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
mov dx, word [0x5f4a04]
mov word [eax + 4], dx
mov cl, byte [0x5f4a06]
mov byte [eax + 6], cl
pop ebx
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 8]
test eax, eax
jle 0x4ba0de
mov esi, dword [esp + 0x2c]
lea esp, [esp]
mov edx, dword [edi + 0x40]
mov eax, dword [esi]
push edx
push eax
call fcn.004e8a00
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 0x4ba0c0
mov dword [edi + 8], 0
pop edi
pop ebp
mov eax, 2
pop esi
add esp, 0x18
ret