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

Disassembly:
push 0xffffffffffffffff
push 0x6277cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x870
mov dword [esp + 0x28], ecx
push ebx
mov ecx, dword [esp + 0x884]
push ebp
mov ebp, dword [esp + 0x88c]
mov eax, ecx
push esi
or eax, ebp
push edi
jne 0x5b85be
xor eax, eax
jmp 0x5b8b0a
mov eax, dword [esp + 0x898]
xor ebx, ebx
cmp eax, ebx
jne 0x5b85d2
xor eax, eax
jmp 0x5b8b0a
fild qword [esp + 0x890]
cmp ebp, 1
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
fmul qword [0x656df8]
fstp qword [esp + 0x5c]
jl 0x5b8603
jg 0x5b85fc
cmp ecx, ebx
jbe 0x5b8603
mov byte [esp + 0x12], 1
jmp 0x5b8616
cmp ebp, ebx
jl 0x5b8616
jg 0x5b8611
cmp ecx, 0x80000000
jbe 0x5b8616
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x78]
lea edx, [esp + 0x480]
push ecx
push edx
lea ecx, [esp + 0x688]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005deee8
add esp, 0x14
push 0x6d9574
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x5b865f
push 0x6da2f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5b8663
mov ecx, 1
jmp 0x5b8665
mov eax, dword [esp + 0x3c]
xor ecx, ecx
or esi, 0xffffffff
or edi, 0xffffffff
cmp ecx, ebx
je 0x5b8693
lea ecx, [esp + 0x68]
lea edx, [esp + 0x70]
push ecx
push edx
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x28]
push ecx
push edx
call eax
test eax, eax
je 0x5b86c6
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
jmp 0x5b86c6
lea eax, [esp + 0x64]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x5b86c6
mov esi, dword [esp + 0x4c]
imul esi, dword [esp + 0x50]
imul esi, dword [esp + 0x34]
xor edi, edi
cmp edi, ebp
jg 0x5b88a4
jl 0x5b86dd
cmp esi, dword [esp + 0x890]
ja 0x5b88a4
and esi, edi
cmp esi, 0xffffffff
je 0x5b88a4
lea edx, [esp + 0x480]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.004023e0
lea eax, [esp + 0x78]
mov dword [esp + 0x888], ebx
test eax, eax
je 0x5b87ae
lea ecx, [esp + 0x78]
push ecx
call fcn.005de123
add esp, 4
test eax, eax
je 0x5b87ae
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x5b8743
push eax
call fcn.005de123
add esp, 4
mov esi, eax
jmp 0x5b8745
xor esi, esi
lea edx, [esp + 0x78]
push edx
call fcn.005de123
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005f6c5c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5b87ae
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x5b8786
push eax
push esi
call fcn.005de2e9
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.005de2bf
add esp, 0x10
jmp 0x5b8794
lea edx, [esp + 0x78]
push edx
push esi
call fcn.005de2e9
add esp, 8
lea ecx, [esp + 0x28]
call fcn.00401070
push esi
mov dword [esp + 0x2c], esi
call fcn.005de123
add esp, 4
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x28]
cmp esi, ebx
jne 0x5b87ba
lea esi, [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.005de123
push esi
mov edi, eax
call fcn.005de123
add edi, eax
or ecx, 0xffffffff
mov edx, edi
mov edi, dword [0x6eda40]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 0x40]
lea eax, [edi + edi]
push eax
call fcn.005f6c5c
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x5b8889
mov ecx, dword [0x6eda40]
push ebx
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
call fcn.00402d00
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x888], 1
cmp ecx, ebx
jne 0x5b882f
lea ecx, [esp + 0x2c]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x5b883b
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x38]
mov edx, dword [edx + 0x30]
push edx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x898]
push ebp
push edx
push ecx
push eax
push edi
push esi
call fcn.005de0b3
add esp, 0x20
push 0x50030
push 0x6c15a0
push esi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.005f6c85
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x888], 0
call fcn.00401070
lea ecx, [esp + 0x28]
mov esi, 1
mov dword [esp + 0x888], 0xffffffff
call fcn.00401070
jmp 0x5b88a8
mov esi, dword [esp + 0x3c]
mov al, byte [esp + 0x13]
test al, al
jne 0x5b88bc
mov al, byte [esp + 0x12]
test al, al
je 0x5b8b08
lea eax, [esp + 0x20]
push 0x6bc14c
push eax
call fcn.005de2bf
add esp, 8
lea ecx, [esp + 0x278]
lea edx, [esp + 0x20]
push 0x104
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x5b8b08
lea eax, [esp + 0x278]
push 0x6df5d8
push eax
call fcn.005e07bc
add esp, 8
test eax, eax
je 0x5b8935
mov al, byte [esp + 0x12]
test al, al
je 0x5b8b08
lea ecx, [esp + 0x278]
push 0x6df5cc
push ecx
call fcn.005e07bc
add esp, 8
test eax, eax
jne 0x5b8b08
lea edx, [esp + 0x480]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], bx
call fcn.004023e0
lea eax, [esp + 0x78]
mov dword [esp + 0x888], 2
test eax, eax
je 0x5b89ff
lea ecx, [esp + 0x78]
push ecx
call fcn.005de123
add esp, 4
test eax, eax
je 0x5b89ff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5b8994
push eax
call fcn.005de123
add esp, 4
mov esi, eax
jmp 0x5b8996
xor esi, esi
lea edx, [esp + 0x78]
push edx
call fcn.005de123
add eax, esi
lea eax, [eax + eax + 2]
push eax
call fcn.005f6c5c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5b89ff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5b89d7
push eax
push esi
call fcn.005de2e9
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.005de2bf
add esp, 0x10
jmp 0x5b89e5
lea edx, [esp + 0x78]
push edx
push esi
call fcn.005de2e9
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00401070
push esi
mov dword [esp + 0x18], esi
call fcn.005de123
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x5b8a0b
lea eax, [esp + 0x18]
push eax
call fcn.005de123
mov edi, dword [0x6ecdd8]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ecx + 0x40]
lea eax, [edi + edi]
push eax
call fcn.005f6c5c
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x5b8aed
mov ecx, dword [0x6ecdd8]
push ebx
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x50], ebx
mov word [esp + 0x4c], bx
call fcn.00402d00
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x888], 3
test ebx, ebx
jne 0x5b8a6f
lea ebx, [esp + 0x18]
mov eax, dword [esp + 0x40]
test eax, eax
mov ebp, eax
jne 0x5b8a7d
lea ebp, [esp + 0x44]
lea edx, [esp + 0x278]
push 0x6df5d8
push edx
call fcn.005e07bc
add esp, 8
mov edx, dword [esp + 0x60]
neg eax
sbb eax, eax
lea ecx, [esp + 0x20]
and eax, 2
add eax, 2
push eax
lea eax, [esp + 0x27c]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
push ebx
push ebp
push edi
push esi
call fcn.005de0b3
add esp, 0x24
push 0x50030
push 0x6c15a0
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.005f6c85
add esp, 4
lea ecx, [esp + 0x40]
mov byte [esp + 0x888], 2
call fcn.00401070
lea ecx, [esp + 0x14]
mov dword [esp + 0x888], 0xffffffff
call fcn.00401070
mov eax, 2
jmp 0x5b8b0a
mov eax, esi
mov ecx, dword [esp + 0x880]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x87c
ret 0xc