Function at 0x49a790
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 0x49a7be
mov eax, dword [esp + 0x48]
mov edx, dword [edx]
push 1
push eax
mov eax, dword [esp + 0x4c]
push eax
push esi
call fcn.004ed570
pop esi
add esp, 0x34
ret 0x10
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x49a7d1
mov eax, 2
pop esi
add esp, 0x34
ret 0x10
mov ecx, dword [eax + 0x1c]
push edi
mov edi, 1
cmp ecx, edi
je 0x49a7e8
mov eax, edi
pop edi
pop esi
add esp, 0x34
ret 0x10
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x49ad1d
mov ecx, dword [eax]
push ebx
push ebp
call fcn.004ed2a0
test eax, eax
mov ebx, dword [esp + 0x54]
je 0x49a8cc
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.00563a6c
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
mov ecx, ebx
ja 0x49a88d
cmp byte [ebx], 0
jne 0x49a850
mov dword [esp + 0x10], 0
jmp 0x49a870
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49a855
sub eax, esi
lea ecx, [ecx + eax + 1]
cmp byte [ecx], 0
je 0x49a870
inc dword [esp + 0x10]
cmp byte [ecx], 0
jne 0x49a850
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
push eax
push 0x5748f8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x49ad1b
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jae 0x49a973
lea esp, [esp]
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x49a8a5
sub edx, esi
mov al, byte [ecx + edx + 1]
test al, al
lea ecx, [ecx + edx + 1]
je 0x49a973
inc ebp
cmp ebp, edi
mov dword [esp + 0x10], ebp
jb 0x49a8a0
jmp 0x49a973
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
call fcn.00519090
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push 2
push 0x578de4
push edx
call fcn.00572b89
add esp, 0xc
test eax, eax
jne 0x49a96a
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x40]
mov ebp, dword [esp + 0x50]
mov ecx, dword [ecx]
mov edx, ebp
mov edi, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x49a900
lea edx, [ebp + 2]
push 0x5c
push edx
call fcn.00563730
add esp, 8
test eax, eax
je 0x49a953
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x49a98a
push 0x5c
push eax
call fcn.00563730
add esp, 8
test eax, eax
je 0x49a939
mov byte [eax + 1], 0
jmp 0x49a98a
mov edi, ebp
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49a940
mov ax, word [0x576d8c]
mov word [edi], ax
jmp 0x49a98a
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49a956
mov cx, word [0x576d8c]
mov word [edi], cx
jmp 0x49a98a
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x40]
mov ecx, dword [eax]
movzx edx, byte [ecx]
mov ebp, dword [esp + 0x50]
push edx
push str._c:_
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49acbe
mov ecx, eax
mov edx, dword [ecx]
push 0x2e
push edx
call fcn.00563c90
mov esi, eax
add esp, 8
test esi, esi
je 0x49acbe
cmp edi, 1
jbe 0x49ad1b
push str..label
push esi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49a9fe
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 ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
jmp 0x49ad1b
push str..unc
push esi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49aa3f
mov edx, ebp
mov ecx, ebx
call fcn.0052d710
test eax, eax
je 0x49ad1b
mov edx, dword [esp + 0x4c]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x49aa30
jmp 0x49ad1b
push str..free
push esi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49ab0a
mov esi, dword [esp + 0x4c]
mov byte [esi], al
mov eax, dword [0x5990b0]
test eax, eax
jne 0x49aa78
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5990b0], eax
je 0x49aab6
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49aab6
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push ecx
push ebp
call eax
test eax, eax
je 0x49aab6
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
push str._I64Ld
push esi
call fcn.00563aea
add esp, 0x10
cmp byte [esi], 0
jne 0x49ad1b
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 ebp
mov word [esi], 0x30
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x49ad1b
mov edx, dword [esp + 0x1c]
imul edx, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
push edx
push 0x5748e0
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x49ad1b
push str..size
push esi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49abbb
mov esi, dword [esp + 0x4c]
mov byte [esi], al
mov eax, dword [0x5990b0]
test eax, eax
jne 0x49ab43
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5990b0], eax
je 0x49ab81
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49ab81
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push ecx
push ebp
call eax
test eax, eax
je 0x49ab81
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
push str._I64Ld
push esi
call fcn.00563aea
add esp, 0x10
cmp byte [esi], 0
jne 0x49ad1b
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 ebp
mov word [esi], 0x30
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x49ad1b
mov edx, dword [esp + 0x18]
jmp 0x49aaeb
push str..type
push esi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49ac98
cmp edi, 2
jne 0x49abfb
mov ecx, dword [str.removable]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov edx, dword [0x578d94]
mov dword [eax + 4], edx
mov cx, word [0x578d98]
mov word [eax + 8], cx
jmp 0x49ad1b
cmp edi, 3
jne 0x49ac1b
mov eax, dword [str.fixed]
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
mov cx, word [0x578d8c]
mov word [edx + 4], cx
jmp 0x49ad1b
cmp edi, 4
jne 0x49ac43
mov eax, dword [str.remote]
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
mov cx, word [0x576258]
mov word [edx + 4], cx
mov al, byte [0x57625a]
mov byte [edx + 6], al
jmp 0x49ad1b
cmp edi, 5
jne 0x49ac63
mov edx, dword [str.cdrom]
mov ecx, dword [esp + 0x4c]
mov dword [ecx], edx
mov ax, word [0x578d84]
mov word [ecx + 4], ax
jmp 0x49ad1b
cmp edi, 6
mov eax, dword [esp + 0x4c]
jne 0x49ac82
mov ecx, dword [str.ramdisk]
mov dword [eax], ecx
mov edx, dword [0x578d78]
mov dword [eax + 4], edx
jmp 0x49ad1b
mov ecx, dword [str.unknown]
mov dword [eax], ecx
mov edx, dword [0x574834]
mov dword [eax + 4], edx
jmp 0x49ad1b
push str..path
push esi
call fcn.00572b46
add esp, 8
test eax, eax
jne 0x49ad1b
mov edx, dword [esp + 0x4c]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x49acb2
jmp 0x49ad1b
cmp edi, 1
jbe 0x49acfb
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 ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x49acfb
mov ecx, dword [str._true]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dx, word [0x5748d4]
mov word [eax + 4], dx
jmp 0x49ad1b
mov ecx, dword [str._false]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dx, word [0x5748c4]
mov word [eax + 4], dx
mov cl, byte [0x5748c6]
mov byte [eax + 6], cl
pop ebp
pop ebx
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 8]
test eax, eax
jle 0x49ad49
mov edi, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [esi + 0x40]
mov ecx, dword [edi]
call fcn.004c2730
mov dword [edi], eax
mov ecx, dword [esi + 8]
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 8], ecx
jg 0x49ad30
pop edi
mov dword [esi + 8], 0
mov eax, 2
pop esi
add esp, 0x34
ret 0x10