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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62467d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x6d5db8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0x3a
mov byte [ebp - 0x16], 0x5c
mov byte [ebp - 0x15], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x70]
add eax, 0x1d4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x124], 0
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x11c], 0
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x120], 0
mov dword [ebp - 0x1c], 0x41
jmp 0x4bb5be
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x5a
jg 0x4bb96f
mov dword [ebp - 0x20], 0
mov dl, byte [ebp - 0x1c]
mov byte [ebp - 0x18], dl
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x74], 0
jb 0x4bb679
cmp dword [ebp - 0x74], 2
jbe 0x4bb600
cmp dword [ebp - 0x74], 5
je 0x4bb600
jmp 0x4bb679
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.004014d0
test eax, eax
jne 0x4bb617
jmp 0x4bb9ba
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.00416970
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
jmp 0x4bb63a
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
jge 0x4bb674
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.005cef0e
mov dword [ebp - 0x2c], eax
movsx edx, byte [ebp - 0x18]
cmp dword [ebp - 0x2c], edx
jne 0x4bb672
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.0047d470
jmp 0x4bb631
jmp 0x4bb96a
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.004014d0
test eax, eax
jne 0x4bb690
jmp 0x4bb9ba
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.00416970
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x38], 0
jmp 0x4bb6ba
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x34]
jge 0x4bb6f8
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.005cef0e
mov dword [ebp - 0x6c], eax
movsx ecx, byte [ebp - 0x18]
cmp dword [ebp - 0x6c], ecx
jne 0x4bb6e4
jmp 0x4bb6f8
movsx edx, byte [ebp - 0x18]
cmp edx, dword [ebp - 0x6c]
jbe 0x4bb6f6
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x4bb6b1
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x34]
jne 0x4bb733
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.004169d0
movsx ecx, byte [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.004169a0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
push 8
push 0
lea ecx, [ebp - 0x64]
push ecx
call fcn.005e5330
add esp, 0xc
push 8
push 0
lea edx, [ebp - 0x5c]
push edx
call fcn.005e5330
add esp, 0xc
push 8
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.005e5330
add esp, 0xc
push 0x65fdab
lea ecx, [ebp - 0x68]
call fcn.004015a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0
push 0x100000
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x54]
push eax
call fcn.005eba50
mov dword [ebp - 0x30], eax
push 0
push 0x100000
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.005eba50
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x3c], 0
jle 0x4bb7d6
cmp dword [ebp - 0x30], 0
jl 0x4bb7d6
cmp dword [ebp - 0x40], 0
jge 0x4bb7ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401620
jmp 0x4bb96a
mov ecx, dword [ebp - 0x3c]
push ecx
push 0x660568
lea edx, [ebp - 0x68]
push edx
call fcn.00405010
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00587e90
push eax
push 1
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.005ceee3
mov ecx, dword [ebp - 0x40]
push ecx
push 0x66056c
lea edx, [ebp - 0x68]
push edx
call fcn.00405010
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00587e90
push eax
push 2
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.005ceee3
mov ecx, dword [ebp - 0x30]
push ecx
push 0x660570
lea edx, [ebp - 0x68]
push edx
call fcn.00405010
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00587e90
push eax
push 3
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.005ceee3
mov eax, dword [ebp - 0x30]
imul eax, eax, 0x64
cdq
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x3c]
cdq
push edx
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call fcn.005ebac0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
push 0x660574
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push str._lld__s
lea edx, [ebp - 0x68]
push edx
call fcn.00405010
add esp, 0x14
lea ecx, [ebp - 0x68]
call fcn.00587e90
push eax
push 4
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.005ceee3
movsx ecx, byte [ebp - 0x18]
push ecx
call fcn.00442630
mov ecx, eax
call fcn.0041bc30
mov ecx, eax
call fcn.00581550
movzx edx, al
test edx, edx
je 0x4bb95b
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4bb91c
push 1
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x70]
add ecx, 0xc8
call fcn.005cfbcb
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x120]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x120], eax
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x11c]
add eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x11c], eax
mov edx, dword [ebp - 0x70]
mov eax, dword [edx + 0x124]
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x70]
mov dword [ecx + 0x124], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401620
jmp 0x4bb5b5
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x11c], 0
je 0x4bb99d
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x124]
imul eax, eax, 0x64
mov ecx, dword [ebp - 0x70]
xor edx, edx
div dword [ecx + 0x11c]
mov edx, dword [ebp - 0x70]
mov dword [edx + 0x128], eax
jmp 0x4bb9aa
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x128], 0x64
mov ecx, dword [ebp - 0x70]
add ecx, 0x1d4
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4