Function at 0x5b0270
Capabilities:
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61bf56
push eax
mov eax, 0x20c0
mov dword fs:[0], esp
call fcn.00466c20
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x20dc]
xor ebp, ebp
push 0xffffffffffffffff
push ebp
call fcn.005b0a80
mov al, byte [0x6a597c]
test al, 1
jne 0x5b02d5
mov bl, al
push str.GetDiskFreeSpaceExA
or bl, 1
push 0x6823d0
mov byte [0x6a597c], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6a5978], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebp
mov dword [esp + 0x60], eax
jne 0x5b02ea
xor eax, eax
jmp 0x5b06c7
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x30], 0x635980
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x118]
mov dword [esp + 0x20d4], ebp
cmp eax, ebp
je 0x5b0346
mov eax, dword [esi + 0x14]
cmp eax, 2
je 0x5b0332
cmp eax, 1
jne 0x5b0332
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.005ada10
jmp 0x5b033e
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.005adc90
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x10d2]
mov word [esp + 0x10d0], bp
mov word [esp + 0x18d0], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x18d2]
mov dword [esp + 0x1c], ebp
rep stosd dword es:[edi], eax
mov ecx, dword [0x69d2fc]
mov dword [esp + 0x54], ebp
stosw word es:[edi], ax
mov eax, dword [0x69d2f8]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x28], eax
mov eax, dword [0x69d5f0]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov eax, 1
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x64]
mov esi, eax
shl eax, 1
test ecx, esi
mov dword [esp + 0x48], eax
je 0x5b067f
mov ecx, 0x413
xor eax, eax
lea edi, [esp + 0x82]
mov word [esp + 0x80], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp edx, ebp
jle 0x5b04a1
lea ecx, [ebx + 8]
test dword [ecx], esi
jne 0x5b03fb
inc eax
add ecx, 0x55c
cmp eax, edx
jl 0x5b03e7
jmp 0x5b04a1
lea edx, [eax + eax*8]
lea ecx, [eax + edx*2]
lea ecx, [ecx + ecx*8]
lea edx, [eax + ecx*2]
mov eax, dword [ebx + edx*4 + 4]
dec eax
cmp eax, 4
ja case.default.0x5b0411
jmp dword [eax*4 + 0x5b06e4]
push str.Compact_Disc
jmp 0x5b045e
lea edx, [esp + 0x288]
push str.Local_Disk
push edx
call fcn.00466936
push str.Floppy
jmp 0x5b0491
lea ecx, [esp + 0x288]
push str.Local_Disk
push ecx
call fcn.00466936
lea edx, [esp + 0x88]
push str.Fixed_hard_disk_media
push edx
jmp 0x5b0499
push str.Removable_Disk
lea eax, [esp + 0x28c]
push eax
call fcn.00466936
lea ecx, [esp + 0x88]
push str.Removable_media_other_than_floppy
push ecx
jmp 0x5b0499
lea edx, [esp + 0x288]
push str.Unknown
push edx
call fcn.00466936
push str.Unknown
lea eax, [esp + 0x8c]
push eax
call fcn.00466936
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
lea eax, [esp + 0x8a0]
push edx
lea esi, [ecx + 0x41]
push eax
mov word [esp + 0x38], si
call fcn.00466936
add esp, 8
lea ecx, [esp + 0x18d0]
lea edx, [esp + 0x60]
lea eax, [esp + 0x54]
push 0x400
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x10e4]
push 0x400
lea eax, [esp + 0x40]
push edx
push eax
mov word [esp + 0x48], si
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x5b0540
lea ecx, [esp + 0x10d0]
lea edx, [esp + 0x490]
push ecx
push edx
call fcn.00466936
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xcb8]
push 0xa
push eax
push ecx
call fcn.0046896b
lea edx, [esp + 0x18e4]
lea eax, [esp + 0x6ac]
push edx
push eax
call fcn.00466936
add esp, 0x1c
mov eax, dword [0x6a5978]
cmp eax, ebp
je 0x5b059f
lea ecx, [esp + 0x58]
lea edx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x78]
lea edx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
call eax
test eax, eax
je 0x5b063c
fild qword [esp + 0x4c]
fmul qword [0x6359d0]
fstp qword [esp + 0xeb8]
fild qword [esp + 0x58]
jmp 0x5b062f
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5b063c
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push ebp
push ebx
push ebp
push edx
xor edi, edi
call fcn.00466f30
push edi
push esi
push edx
push eax
call fcn.00466f30
push ebp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x24]
xor ebp, ebp
push ebx
push ebp
push eax
mov dword [esp + 0x7c], edx
call fcn.00466f30
push edi
push esi
push edx
push eax
call fcn.00466f30
fild qword [esp + 0x68]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
fmul qword [0x6359d0]
fstp qword [esp + 0xeb8]
fild qword [esp + 0x78]
fmul qword [0x6359d0]
fstp qword [esp + 0xec0]
mov ebx, dword [esp + 0x20e0]
push 0xffffffffffffffff
mov edi, dword [ebx + 8]
lea ecx, [edi + 1]
push ecx
mov ecx, ebx
call fcn.005b0a80
mov edx, edi
mov eax, dword [ebx + 4]
shl edx, 6
add edx, edi
mov ecx, 0x414
lea esi, [esp + 0x80]
lea edi, [edi + edx*4]
shl edi, 4
add edi, eax
mov eax, dword [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
inc ecx
cmp ecx, 0x1a
mov dword [esp + 0x10], ecx
jl 0x5b03ac
mov eax, dword [esp + 0x20e0]
xor ecx, ecx
mov dword [esp + 0x34], 0x635980
mov eax, dword [eax + 8]
cmp eax, ebp
setne cl
mov esi, ecx
cmp ebx, ebp
mov dword [esp + 0x20d8], 1
pop edi
je 0x5b06c5
push ebx
call fcn.005ed483
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20cc]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20cc
ret 4