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

Disassembly:
sub esp, 0x34
push esi
mov esi, dword [esp + 0x3c]
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x14], edx
jne 0x4a9bce
mov eax, dword [esp + 0x48]
mov edx, dword [edx]
push 1
push eax
mov eax, dword [esp + 0x4c]
push eax
push esi
call fcn.00503c20
pop esi
add esp, 0x34
ret 0x10
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4a9be1
mov eax, 2
pop esi
add esp, 0x34
ret 0x10
mov ecx, dword [eax + 0x1c]
push edi
mov edi, 1
cmp ecx, edi
je 0x4a9bf8
mov eax, edi
pop edi
pop esi
add esp, 0x34
ret 0x10
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4aa153
mov ecx, dword [eax]
push ebx
push ebp
call fcn.00503910
test eax, eax
mov ebx, dword [esp + 0x54]
je 0x4a9cdc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov byte [ebx + 0x103], 0
mov byte [ebx + 0x104], 0
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x10], edi
mov edx, dword [ecx]
push edx
call fcn.0059164b
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
mov ecx, ebx
ja 0x4a9c9d
cmp byte [ebx], 0
jne 0x4a9c60
mov dword [esp + 0x10], 0
jmp 0x4a9c80
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a9c65
sub eax, esi
lea ecx, [ecx + eax + 1]
cmp byte [ecx], 0
je 0x4a9c80
inc dword [esp + 0x10]
cmp byte [ecx], 0
jne 0x4a9c60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
push eax
push 0x5a4998
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4aa151
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jae 0x4a9db0
lea esp, [esp]
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a9cb5
sub edx, esi
mov al, byte [ecx + edx + 1]
test al, al
lea ecx, [ecx + edx + 1]
je 0x4a9db0
inc ebp
cmp ebp, edi
mov dword [esp + 0x10], ebp
jb 0x4a9cb0
jmp 0x4a9db0
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
call fcn.00537930
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push 2
push 0x5a9768
push edx
call fcn.005a2a05
add esp, 0xc
test eax, eax
jne 0x4a9d7a
mov eax, dword [esi + 0x40]
mov esi, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, esi
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4a9d10
lea ecx, [esi + 2]
push 0x5c
push ecx
call fcn.005912e0
add esp, 8
test eax, eax
je 0x4a9d64
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4a9dc7
push 0x5c
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x4a9d4d
mov byte [eax + 1], 0
jmp 0x4a9dc7
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a9d50
mov dx, word [0x5a73e0]
mov word [edi], dx
jmp 0x4a9dc7
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4a9d67
mov ax, word [0x5a73e0]
mov word [edi], ax
jmp 0x4a9dc7
mov ecx, dword [esi + 0x40]
mov ecx, dword [ecx]
mov edx, 2
call fcn.00421f20
test eax, eax
je 0x4a9dab
mov edx, dword [esi + 0x40]
mov esi, dword [esp + 0x50]
mov ecx, dword [edx]
mov edx, esi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4a9d98
mov ecx, esi
call fcn.00422770
jmp 0x4a9dc7
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
movzx edx, byte [ecx]
mov esi, dword [esp + 0x50]
push edx
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 ebp, eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4aa0f4
mov ecx, eax
mov edx, dword [ecx]
push 0x2e
push edx
call fcn.00591bd0
mov edi, eax
add esp, 8
test edi, edi
je 0x4aa0f4
cmp ebp, 1
jbe 0x4aa151
push str..label
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4a9e3b
mov edx, dword [esp + 0x4c]
push 0x3e7
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x3e7
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
jmp 0x4aa151
push str..unc
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4a9e75
mov edx, esi
mov ecx, ebx
call fcn.00552f60
test eax, eax
je 0x4aa151
mov edx, dword [esp + 0x4c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a9e66
jmp 0x4aa151
push str..free
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4a9f40
mov edi, dword [esp + 0x4c]
mov byte [edi], al
mov eax, dword [0x5eeec8]
test eax, eax
jne 0x4a9eae
push 0x5a57b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5eeec8], eax
je 0x4a9eec
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a9eec
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
call eax
test eax, eax
je 0x4a9eec
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
push str._I64Ld
push edi
call fcn.005916f7
add esp, 0x10
cmp byte [edi], 0
jne 0x4aa151
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
mov word [edi], 0x30
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4aa151
mov edx, dword [esp + 0x1c]
imul edx, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
push edx
push 0x5a4980
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4aa151
push str..size
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4a9ff1
mov edi, dword [esp + 0x4c]
mov byte [edi], al
mov eax, dword [0x5eeec8]
test eax, eax
jne 0x4a9f79
push 0x5a57b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5eeec8], eax
je 0x4a9fb7
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a9fb7
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
call eax
test eax, eax
je 0x4a9fb7
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
push str._I64Ld
push edi
call fcn.005916f7
add esp, 0x10
cmp byte [edi], 0
jne 0x4aa151
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
mov word [edi], 0x30
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4aa151
mov edx, dword [esp + 0x18]
jmp 0x4a9f21
push str..type
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aa0ce
cmp ebp, 2
jne 0x4aa031
mov ecx, dword [str.removable]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov edx, dword [0x5a9728]
mov dword [eax + 4], edx
mov cx, word [0x5a972c]
mov word [eax + 8], cx
jmp 0x4aa151
cmp ebp, 3
jne 0x4aa051
mov eax, dword [str.fixed]
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
mov cx, word [0x5a9720]
mov word [edx + 4], cx
jmp 0x4aa151
cmp ebp, 4
jne 0x4aa079
mov eax, dword [str.remote]
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
mov cx, word [0x5a6834]
mov word [edx + 4], cx
mov al, byte [0x5a6836]
mov byte [edx + 6], al
jmp 0x4aa151
cmp ebp, 5
jne 0x4aa099
mov edx, dword [str.cdrom]
mov ecx, dword [esp + 0x4c]
mov dword [ecx], edx
mov ax, word [0x5a9718]
mov word [ecx + 4], ax
jmp 0x4aa151
cmp ebp, 6
mov eax, dword [esp + 0x4c]
jne 0x4aa0b8
mov ecx, dword [str.ramdisk]
mov dword [eax], ecx
mov edx, dword [0x5a970c]
mov dword [eax + 4], edx
jmp 0x4aa151
mov ecx, dword [str.unknown]
mov dword [eax], ecx
mov edx, dword [0x5a48d4]
mov dword [eax + 4], edx
jmp 0x4aa151
push str..path
push edi
call fcn.005a299c
add esp, 8
test eax, eax
jne 0x4aa151
mov edx, dword [esp + 0x4c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4aa0e8
jmp 0x4aa151
cmp ebp, 1
jbe 0x4aa131
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
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 0x4aa131
mov ecx, dword [str._true]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dx, word [0x5a4974]
mov word [eax + 4], dx
jmp 0x4aa151
mov ecx, dword [str._false]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dx, word [0x5a4964]
mov word [eax + 4], dx
mov cl, byte [0x5a4966]
mov byte [eax + 6], cl
pop ebp
pop ebx
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 8]
test eax, eax
jle 0x4aa17b
mov edi, dword [esp + 0x18]
mov edx, dword [esi + 0x40]
mov ecx, dword [edi]
call fcn.004d3ac0
mov dword [edi], eax
mov ecx, dword [esi + 8]
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 8], ecx
jg 0x4aa162
pop edi
mov dword [esi + 8], 0
mov eax, 2
pop esi
add esp, 0x34
ret 0x10