Function at 0x5bfbf0
Capabilities:
Get disk information
Get disk size
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x658e46
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x7496c8]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov eax, dword [esp + 0x348]
mov ecx, dword [esp + 0x34c]
mov edx, dword [esp + 0x358]
mov edi, dword [esp + 0x354]
xor ebx, ebx
push str.KERNEL32
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edx
xor ebp, ebp
mov dword [esp + 0x2b0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x5bfc96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetDiskFreeSpaceExW
push esi
call edi
push str.GetVolumeNameForVolumeMountPointW
push esi
mov dword [esp + 0x2b4], eax
call edi
mov edi, dword [esp + 0x18]
mov ebp, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
cmp ebp, ebx
je 0x5bfedf
xor eax, eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x48], ax
mov dword [esp + 0x340], ebx
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
call fcn.004017f0
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x5bfcd6
lea eax, [esp + 0x48]
push 0x5c
push eax
call fcn.00612d55
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x5bfebb
jmp 0x5bfcf0
xor edx, edx
mov word [edi + 2], dx
mov esi, dword [esp + 0x44]
mov eax, esi
cmp esi, ebx
jne 0x5bfd04
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5bfd07
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x5bfe17
mov eax, esi
cmp esi, ebx
jne 0x5bfd29
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x5bfdec
xor eax, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov word [esp + 0x54], ax
mov byte [esp + 0x340], 1
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x5bfd5e
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x54]
call fcn.004017f0
mov eax, dword [esp + 0x50]
cmp eax, ebx
jne 0x5bfd74
lea eax, [esp + 0x54]
push 0x5c
push eax
call fcn.00612d55
add esp, 8
cmp eax, ebx
je 0x5bfddc
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esp + 0x50]
cmp eax, ebx
jne 0x5bfd94
lea eax, [esp + 0x54]
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5bfddc
cmp dword [esp + 0x80], 0xa0000003
jne 0x5bfdd5
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x5bfdc0
lea eax, [esp + 0x48]
push 0x40
lea ecx, [esp + 0x2b8]
push ecx
push eax
call ebp
test eax, eax
jne 0x5bfe5a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x340], bl
lea ecx, [esp + 0x50]
call fcn.004011f0
xor edx, edx
mov word [edi], dx
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x5bfdfd
lea eax, [esp + 0x48]
push 0x5c
push eax
call fcn.00612d55
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x5bfcf0
jmp 0x5bfebb
xor eax, eax
mov word [edi], ax
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jne 0x5bfe28
lea ecx, [esp + 0x48]
lea edx, [esp + 0x2b4]
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x5bfe30
lea ecx, [esp + 0x2b4]
mov edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.004017f0
jmp 0x5bfebb
lea edi, [esp + 0x2b4]
mov dword [esp + 0x24], 1
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x5bfe70
mov eax, dword [0x66b970]
mov dword [edi], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x2b4]
mov dword [esp + 0x14], ecx
cmp eax, ebx
jne 0x5bfe9a
lea eax, [esp + 0x48]
mov ecx, dword [esp + 0x20]
push eax
call fcn.004017f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x340], bl
lea ecx, [esp + 0x50]
call fcn.004011f0
mov dword [esp + 0x340], 0xffffffff
lea ecx, [esp + 0x44]
call fcn.004011f0
cmp dword [esp + 0x24], ebx
jne 0x5bff1a
cmp dword [esp + 0x14], ebx
jne 0x5bff1a
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 3
lea edx, [esp + 0x60]
push edx
push eax
call fcn.006161d7
add esp, 0x24
test eax, eax
je 0x5bff04
xor eax, eax
jmp 0x5c001f
lea ecx, [esp + 0x44]
mov edx, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.004017f0
jmp 0x5bff1e
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2ac]
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
cmp eax, ebx
je 0x5bff5f
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
call eax
test eax, eax
je 0x5bff9b
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [edi], eax
mov dword [edi + 4], ecx
jmp 0x5bff9b
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2b8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5bff9b
mov ecx, dword [esp + 0x2ac]
imul ecx, dword [esp + 0x1c]
imul ecx, dword [esp + 0x18]
mov dword [edi], ecx
mov dword [edi + 4], ebx
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x5c001a
mov esi, dword [esp + 0x350]
cmp esi, ebx
je 0x5c001a
cmp dword [esp + 0x24], ebx
jne 0x5c0001
mov edx, dword [esp + 0x14]
push 3
push edx
lea eax, [esp + 0x2b4]
push eax
call fcn.00616bbd
xor ecx, ecx
lea edi, [esp + 0x2b8]
add esp, 0xc
mov word [esp + 0x2b0], cx
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x5bffe0
mov edx, dword [0x66b970]
mov dword [edi], edx
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x2ac]
jmp 0x5c0005
mov eax, dword [esp + 0x14]
push esi
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x5c001a
mov word [edi], ax
mov eax, 1
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.00613241
add esp, 0x330
ret