Function at 0x49f8c0
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 0x49f8ee
mov eax, dword [esp + 0x48]
mov edx, dword [edx]
push 1
push eax
mov eax, dword [esp + 0x4c]
push eax
push esi
call fcn.004f48e0
pop esi
add esp, 0x34
ret 0x10
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x49f901
mov eax, 2
pop esi
add esp, 0x34
ret 0x10
mov ecx, dword [eax + 0x1c]
push edi
mov edi, 1
cmp ecx, edi
je 0x49f918
mov eax, edi
pop edi
pop esi
add esp, 0x34
ret 0x10
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x49fe73
mov ecx, dword [eax]
push ebx
push ebp
call fcn.004f4600
test eax, eax
mov ebx, dword [esp + 0x54]
je 0x49f9fc
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.005705cb
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], edi
mov ecx, ebx
ja 0x49f9bd
cmp byte [ebx], 0
jne 0x49f980
mov dword [esp + 0x10], 0
jmp 0x49f9a0
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x49f985
sub eax, esi
lea ecx, [ecx + eax + 1]
cmp byte [ecx], 0
je 0x49f9a0
inc dword [esp + 0x10]
cmp byte [ecx], 0
jne 0x49f980
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x4c]
push eax
push 0x583948
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x49fe71
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jae 0x49fad0
lea esp, [esp]
mov edx, ecx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x49f9d5
sub edx, esi
mov al, byte [ecx + edx + 1]
test al, al
lea ecx, [ecx + edx + 1]
je 0x49fad0
inc ebp
cmp ebp, edi
mov dword [esp + 0x10], ebp
jb 0x49f9d0
jmp 0x49fad0
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
call fcn.00524e60
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
push 2
push 0x588054
push edx
call fcn.00580a2f
add esp, 0xc
test eax, eax
jne 0x49fa9a
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 0x49fa30
lea ecx, [esi + 2]
push 0x5c
push ecx
call fcn.00570260
add esp, 8
test eax, eax
je 0x49fa84
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x49fae7
push 0x5c
push eax
call fcn.00570260
add esp, 8
test eax, eax
je 0x49fa6d
mov byte [eax + 1], 0
jmp 0x49fae7
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49fa70
mov dx, word [0x585e88]
mov word [edi], dx
jmp 0x49fae7
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x49fa87
mov ax, word [0x585e88]
mov word [edi], ax
jmp 0x49fae7
mov ecx, dword [esi + 0x40]
mov ecx, dword [ecx]
mov edx, 2
call fcn.0041fd10
test eax, eax
je 0x49facb
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 0x49fab8
mov ecx, esi
call fcn.004203c0
jmp 0x49fae7
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 0x49fe14
mov ecx, eax
mov edx, dword [ecx]
push 0x2e
push edx
call fcn.00570980
mov edi, eax
add esp, 8
test edi, edi
je 0x49fe14
cmp ebp, 1
jbe 0x49fe71
push str..label
push edi
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x49fb5b
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 0x49fe71
push str..unc
push edi
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x49fb95
mov edx, esi
mov ecx, ebx
call fcn.00539df0
test eax, eax
je 0x49fe71
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 0x49fb86
jmp 0x49fe71
push str..free
push edi
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x49fc60
mov edi, dword [esp + 0x4c]
mov byte [edi], al
mov eax, dword [0x5aa608]
test eax, eax
jne 0x49fbce
push 0x588024
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5aa608], eax
je 0x49fc0c
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49fc0c
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 0x49fc0c
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
push str._I64Ld
push edi
call fcn.00570677
add esp, 0x10
cmp byte [edi], 0
jne 0x49fe71
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 0x49fe71
mov edx, dword [esp + 0x1c]
imul edx, dword [esp + 0x14]
imul edx, dword [esp + 0x10]
push edx
push 0x583930
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x49fe71
push str..size
push edi
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x49fd11
mov edi, dword [esp + 0x4c]
mov byte [edi], al
mov eax, dword [0x5aa608]
test eax, eax
jne 0x49fc99
push 0x588024
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x5aa608], eax
je 0x49fcd7
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49fcd7
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 0x49fcd7
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
push str._I64Ld
push edi
call fcn.00570677
add esp, 0x10
cmp byte [edi], 0
jne 0x49fe71
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 0x49fe71
mov edx, dword [esp + 0x18]
jmp 0x49fc41
push str..type
push edi
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x49fdee
cmp ebp, 2
jne 0x49fd51
mov ecx, dword [str.removable]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov edx, dword [0x588004]
mov dword [eax + 4], edx
mov cx, word [0x588008]
mov word [eax + 8], cx
jmp 0x49fe71
cmp ebp, 3
jne 0x49fd71
mov eax, dword [str.fixed]
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
mov cx, word [0x587ffc]
mov word [edx + 4], cx
jmp 0x49fe71
cmp ebp, 4
jne 0x49fd99
mov eax, dword [str.remote]
mov edx, dword [esp + 0x4c]
mov dword [edx], eax
mov cx, word [0x585350]
mov word [edx + 4], cx
mov al, byte [0x585352]
mov byte [edx + 6], al
jmp 0x49fe71
cmp ebp, 5
jne 0x49fdb9
mov edx, dword [str.cdrom]
mov ecx, dword [esp + 0x4c]
mov dword [ecx], edx
mov ax, word [0x587ff4]
mov word [ecx + 4], ax
jmp 0x49fe71
cmp ebp, 6
mov eax, dword [esp + 0x4c]
jne 0x49fdd8
mov ecx, dword [str.ramdisk]
mov dword [eax], ecx
mov edx, dword [0x587fe8]
mov dword [eax + 4], edx
jmp 0x49fe71
mov ecx, dword [str.unknown]
mov dword [eax], ecx
mov edx, dword [0x583884]
mov dword [eax + 4], edx
jmp 0x49fe71
push str..path
push edi
call fcn.005809c6
add esp, 8
test eax, eax
jne 0x49fe71
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 0x49fe08
jmp 0x49fe71
cmp ebp, 1
jbe 0x49fe51
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 0x49fe51
mov ecx, dword [str._true]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dx, word [0x583924]
mov word [eax + 4], dx
jmp 0x49fe71
mov ecx, dword [str._false]
mov eax, dword [esp + 0x4c]
mov dword [eax], ecx
mov dx, word [0x583914]
mov word [eax + 4], dx
mov cl, byte [0x583916]
mov byte [eax + 6], cl
pop ebp
pop ebx
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 8]
test eax, eax
jle 0x49fe9b
mov edi, dword [esp + 0x18]
mov edx, dword [esi + 0x40]
mov ecx, dword [edi]
call fcn.004c7fe0
mov dword [edi], eax
mov ecx, dword [esi + 8]
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 8], ecx
jg 0x49fe82
pop edi
mov dword [esi + 8], 0
mov eax, 2
pop esi
add esp, 0x34
ret 0x10