Function at 0x601261b0
Capabilities:
Get disk information

Disassembly:
mov ecx, dword [ecx]
jmp 0x6012c6d0
push 0xffffffffffffffff
push 0x6014a590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov al, byte [ebx + 0x11]
test al, al
mov dword [esp + 8], ebx
je 0x6012c70a
xor al, al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
mov eax, dword [esp + 0x2c]
push ebp
push esi
push edi
xor ebp, ebp
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x10], edi
je 0x6012c763
cmp dword [esp + 0x40], ebp
jne 0x6012c734
cmp dword [esp + 0x3c], ebp
jne 0x6012c734
cmp dword [esp + 0x44], ebp
mov eax, 0x64
je 0x6012c739
mov eax, 0xa
mov edx, dword [ebx + 0x50]
lea esi, [ebx + 0x50]
push eax
push ebp
mov ecx, esi
call dword [edx + 4]
lea eax, [esp + 0x38]
push eax
lea ecx, [ebx + 0x14]
mov dword [esp + 0x3c], esi
call fcn.6012b850
mov dword [esp + 0x10], 0xa
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x40], ebp
je 0x6012c7a8
cmp dword [esp + 0x3c], ebp
jne 0x6012c77a
cmp dword [esp + 0x44], ebp
mov eax, 0x64
je 0x6012c77d
lea eax, [edi + 0xa]
mov edx, dword [ebx + 0xb0]
lea esi, [ebx + 0xb0]
push eax
push edi
mov ecx, esi
call dword [edx + 4]
lea eax, [esp + 0x40]
push eax
lea ecx, [ebx + 0x14]
mov dword [esp + 0x44], esi
call fcn.6012b850
add edi, 0xa
mov dword [esp + 0x10], edi
cmp dword [esp + 0x3c], ebp
je 0x6012c7e7
cmp dword [esp + 0x44], ebp
lea eax, [edi + 0xa]
jne 0x6012c7bc
mov eax, 0x64
mov edx, dword [ebx + 0x90]
lea esi, [ebx + 0x90]
push eax
push edi
mov ecx, esi
call dword [edx + 4]
lea eax, [esp + 0x3c]
push eax
lea ecx, [ebx + 0x14]
mov dword [esp + 0x40], esi
call fcn.6012b850
add edi, 0xa
mov dword [esp + 0x10], edi
cmp dword [esp + 0x44], ebp
je 0x6012c916
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebp
push ebp
mov dword [esp + 0x38], ebp
call ebx
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
mov ebp, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x44], edi
mov eax, dword [edi - 4]
mov ecx, 1
mov byte [esp + 0x30], cl
sub ecx, eax
mov eax, dword [edi - 8]
lea esi, [ebp + 1]
sub eax, esi
or eax, ecx
jge 0x6012c84e
push esi
lea ecx, [esp + 0x48]
call fcn.601042f0
mov edi, dword [esp + 0x44]
push edi
push ebp
call ebx
push esi
lea ecx, [esp + 0x48]
call fcn.60114210
mov eax, edi
mov ebp, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6012c863
sub eax, edx
mov esi, eax
je 0x6012c8af
mov ebx, dword [esp + 0x14]
mov al, byte [ebx + 0xd]
test al, al
jne 0x6012c887
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x6012c891
push ebp
lea ecx, [esp + 0x1c]
call fcn.6010aef0
lea ebp, [esi + ebp + 1]
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6012c8a0
sub eax, edx
mov esi, eax
jne 0x6012c870
jmp 0x6012c8b3
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x28]
push 0x64
lea esi, [ebx + 0x28]
push ecx
mov ecx, esi
call dword [eax + 4]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.6012f260
lea eax, [esp + 0x3c]
push eax
lea ecx, [ebx + 0x14]
mov dword [esp + 0x40], esi
call fcn.6012b850
lea eax, [edi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6012c901
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.6010a7a0
mov ebx, dword [esp + 0x14]
mov ecx, ebx
call fcn.6012be30
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10