Function at 0x1001f960
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100344c2
mov eax, dword fs:[0]
push eax
sub esp, 0x6d0
mov eax, dword [0x10048034]
xor eax, esp
mov dword [esp + 0x6c8], eax
push ebx
push esi
push edi
mov eax, dword [0x10048034]
xor eax, esp
push eax
lea eax, [esp + 0x6e0]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x74]
call fcn.10020130
test eax, eax
je 0x1001ff04
cmp byte [esp + 0x88], 0
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jne 0x1001f9de
xor ecx, ecx
jmp 0x1001f9f1
lea ecx, [esp + 0x88]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f9e8
sub ecx, edx
push ecx
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x58]
call fcn.10001860
mov dword [esp + 0x6e8], 0
push 1
push 0x1003ff90
lea ecx, [esp + 0x2a4]
mov dword [esp + 0x2b8], 0xf
mov dword [esp + 0x2b4], 0
mov byte [esp + 0x2a4], 0
call fcn.10001860
mov byte [esp + 0x6e8], 1
push 1
push 0x1003f96c
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10001860
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x58]
lea ecx, [esp + 0x27c]
mov byte [esp + 0x6f0], 2
call fcn.1001f630
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov esi, eax
lea eax, [esp + 0x58]
add esp, 8
cmp eax, esi
je 0x1001fad3
cmp dword [esp + 0x64], 0x10
jb 0x1001fab4
push dword [esp + 0x50]
call ebx
add esp, 4
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
call fcn.1000ca80
cmp dword [esp + 0x288], 0x10
jb 0x1001fae9
push dword [esp + 0x274]
call ebx
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x288], 0xf
mov dword [esp + 0x284], 0
mov byte [esp + 0x274], 0
jb 0x1001fb17
push dword [esp + 0x20]
call ebx
add esp, 4
mov byte [esp + 0x6e8], 0
cmp dword [esp + 0x2b0], 0x10
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jb 0x1001fb4a
push dword [esp + 0x29c]
call ebx
add esp, 4
cmp byte [esp + 0xaa], 0
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jne 0x1001fb6d
xor ecx, ecx
jmp 0x1001fb80
lea ecx, [esp + 0xaa]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001fb77
sub ecx, edx
push ecx
lea eax, [esp + 0xae]
push eax
lea ecx, [esp + 0x40]
call fcn.10001860
mov byte [esp + 0x6e8], 3
push 1
push 0x1003ff90
lea ecx, [esp + 0x2a4]
mov dword [esp + 0x2b8], 0xf
mov dword [esp + 0x2b4], 0
mov byte [esp + 0x2a4], 0
call fcn.10001860
mov byte [esp + 0x6e8], 4
push 1
push 0x1003f96c
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10001860
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x40]
lea ecx, [esp + 0x27c]
mov byte [esp + 0x6f0], 5
call fcn.1001f630
mov esi, eax
lea eax, [esp + 0x40]
add esp, 8
cmp eax, esi
je 0x1001fc59
cmp dword [esp + 0x4c], 0x10
jb 0x1001fc3a
push dword [esp + 0x38]
call ebx
add esp, 4
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.1000ca80
cmp dword [esp + 0x288], 0x10
jb 0x1001fc6f
push dword [esp + 0x274]
call ebx
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x288], 0xf
mov dword [esp + 0x284], 0
mov byte [esp + 0x274], 0
jb 0x1001fc9d
push dword [esp + 0x20]
call ebx
add esp, 4
mov byte [esp + 0x6e8], 3
cmp dword [esp + 0x2b0], 0x10
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
jb 0x1001fcd0
push dword [esp + 0x29c]
call ebx
add esp, 4
cmp dword [esp + 0x64], 0x10
lea edx, [esp + 0x50]
cmovae edx, dword [esp + 0x50]
lea ecx, [esp + 0x274]
call fcn.1001f830
mov esi, eax
lea eax, [esp + 0x50]
cmp eax, esi
je 0x1001fd23
cmp dword [esp + 0x64], 0x10
jb 0x1001fd04
push dword [esp + 0x50]
call ebx
add esp, 4
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
call fcn.1000ca80
cmp dword [esp + 0x288], 0x10
jb 0x1001fd39
push dword [esp + 0x274]
call ebx
add esp, 4
cmp dword [esp + 0x4c], 0x10
lea edx, [esp + 0x38]
cmovae edx, dword [esp + 0x38]
lea ecx, [esp + 0x274]
call fcn.1001f830
mov esi, eax
lea eax, [esp + 0x38]
cmp eax, esi
je 0x1001fd8c
cmp dword [esp + 0x4c], 0x10
jb 0x1001fd6d
push dword [esp + 0x38]
call ebx
add esp, 4
push esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.1000ca80
cmp dword [esp + 0x288], 0x10
jb 0x1001fda2
push dword [esp + 0x274]
call ebx
add esp, 4
cmp dword [esp + 0x64], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002f4c2
add esp, 4
mov dword [esp + 0x14], eax
push esi
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esp + 0x64], 0x10
push edi
push dword [esp + 0x18]
lea ecx, [esp + 0x58]
cmovae ecx, dword [esp + 0x58]
push edi
push ecx
push 0
push 0xfde9
call ebx
cmp dword [esp + 0x4c], 0x10
push 0
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
push 0
push 0xfde9
call ebx
mov edi, eax
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002f4c2
add esp, 4
mov ebx, eax
push esi
push 0
push ebx
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esp + 0x4c], 0x10
push edi
push ebx
push edi
lea ecx, [esp + 0x44]
cmovae ecx, dword [esp + 0x44]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 0x18]
lea eax, [esi + esi]
push eax
push 0
push dword [esp + 0x24]
call sub.MSVCR110.dll_memset
mov edi, dword [esp + 0x20]
add esp, 0xc
push edi
push ebx
push 0x1003ff94
push esi
push dword [esp + 0x2c]
call dword [sym.imp.MSVCR110.dll_swprintf_s]
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 0x14
push ebx
call esi
add esp, 4
push edi
call esi
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x4c], 0x10
jb 0x1001fed6
push dword [esp + 0x38]
call esi
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jb 0x1002005f
push dword [esp + 0x50]
call esi
add esp, 4
jmp 0x1002005f
xor eax, eax
push 0xff
mov word [esp + 0x2a0], ax
mov dword [esp + 0x2c2], eax
mov word [esp + 0x2c6], ax
mov word [esp + 0x278], ax
mov dword [esp + 0x29a], eax
mov word [esp + 0x29e], ax
lea eax, [esp + 0x278]
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x7c]
push eax
xorps xmm0, xmm0
lea eax, [esp + 0x78]
push eax
push 0xff
lea eax, [esp + 0x2b4]
push eax
push 0
movq qword [esp + 0x2be], xmm0
movq qword [esp + 0x2c6], xmm0
movq qword [esp + 0x2ce], xmm0
movq qword [esp + 0x2d6], xmm0
movq qword [esp + 0x296], xmm0
movq qword [esp + 0x29e], xmm0
movq qword [esp + 0x2a6], xmm0
movq qword [esp + 0x2ae], xmm0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x2cc], ax
lea eax, [esp + 0x2ce]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCR110.dll_swprintf_s]
test ecx, ecx
je 0x10020022
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10020022
push eax
push ecx
push str._u__u
lea eax, [esp + 0x2d0]
push 0x208
push eax
call esi
add esp, 0x14
jmp 0x10020034
push ecx
lea eax, [esp + 0x2c8]
push eax
push ecx
call fcn.1001f760
add esp, 0xc
mov ebx, dword [esp + 0x1c]
lea eax, [edi + edi]
push eax
push 0
push ebx
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x2c4]
push dword [esp + 0x68]
push eax
push str._s__08X
push edi
push ebx
call esi
add esp, 0x14
mov ecx, dword [esp + 0x6e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x6c8]
xor ecx, esp
call fcn.1002f746
mov esp, ebp
pop ebp
ret