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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a7fe
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x4f1d64
xor al, al
jmp 0x4f1fbd
push edi
call fcn.004a840b
add esp, 4
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x74], 0
push dword [ebp - 0x5c]
push eax
call fcn.00407a80
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x78]
push esi
push edi
call ebx
test eax, eax
jne 0x4f1da0
xor bl, bl
jmp 0x4f1f93
cmp byte [esi], 0
je 0x4f1f91
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
nop
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4f1dc7
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004074c0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0
push 0x400
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call fcn.004e8820
push 0
push 0x100000
push edx
push eax
call fcn.004e8820
push 0
push 0x400
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
push dword [ebp - 0x70]
mov dword [ebp - 0x64], edx
call fcn.004e8820
push 0
push 0x100000
push edx
push eax
call fcn.004e8820
push 0
push 0x400
push dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x60]
mov dword [ebp - 0x6c], edx
call fcn.004e8820
push 0
push 0x100000
push edx
push eax
call fcn.004e8820
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x58]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004074c0
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x6c]
mov edi, dword [0x801324]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x58]
push eax
cmp dword [0x801328], edi
je 0x4f1f0f
mov ecx, edi
call fcn.00404700
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x2c], eax
add dword [0x801324], 0x30
jmp 0x4f1f15
push edi
call fcn.00407650
mov al, byte [esi]
inc esi
test al, al
jne 0x4f1f15
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x4f1f54
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f1f4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f1fd9
push edx
push ecx
call fcn.004a7e9f
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4f1f88
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4f1f7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f1fd9
push edx
push ecx
call fcn.004a7e9f
add esp, 8
cmp byte [esi], 0
jne 0x4f1db0
mov bl, 1
mov esi, dword [ebp - 0x74]
test esi, esi
je 0x4f1fbb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4f1fbb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4f1fbb
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret
call fcn.004c2f13
int3