Function at 0x10015c91
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x100df7b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x100543bf
test esi, esi
je 0x100543bf
push 0x10015f14
push ebx
call fcn.100d1811
pop ecx
pop ecx
test eax, eax
jne 0x1002f6e1
cmp word [ebx + 2], 0x3a
jne 0x1002f5d8
movzx eax, word [ebx]
test ax, ax
je 0x10015cf1
cmp word [ebx + 4], di
je 0x1002f6e1
push eax
call fcn.100d1811
movzx eax, ax
pop ecx
sub eax, 0x60
push edi
push edi
push edi
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x46c]
push eax
push edi
push ebx
call dword [sym.imp.kernel32.dll_FindFirstFileExW]
mov dword [ebp - 0x474], eax
cmp eax, 0xffffffff
je 0x1002f673
test dword [ebp - 0x46c], 0x400
jne 0x10054464
cmp dword [ebp - 0x458], edi
je 0x100544d2
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1002f5ed
lea eax, [ebp - 0x21c]
push eax
push eax
push edi
call dword [sym.imp.kernel32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x1002f5ed
movzx eax, word [ebp - 0x210]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
call fcn.100d1811
add esp, 0x1c
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [ebp - 0x460], edi
je 0x100544e9
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1002f5e2
lea eax, [ebp - 0x21c]
push eax
push eax
push edi
call dword [sym.imp.kernel32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x1002f5e2
movzx eax, word [ebp - 0x210]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
call fcn.100d1811
add esp, 0x1c
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
cmp dword [ebp - 0x468], edi
je 0x10054506
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1002f5e2
lea eax, [ebp - 0x21c]
push eax
push eax
push edi
call dword [sym.imp.kernel32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x1002f5e2
movzx eax, word [ebp - 0x210]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x21c]
push eax
call fcn.100d1811
add esp, 0x1c
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
push dword [ebp - 0x474]
call dword [sym.imp.kernel32.dll_FindClose]
push ebx
push dword [ebp - 0x46c]
call fcn.100d1811
pop ecx
pop ecx
xor ecx, ecx
mov word [esi + 6], ax
mov eax, dword [ebp - 0x44c]
inc ecx
mov word [esi + 8], cx
mov dword [esi + 0x14], eax
cmp dword [ebp - 0x450], edi
jne 0x10054523
mov ecx, dword [ebp - 0x478]
xor eax, eax
dec ecx
mov word [esi + 4], ax
mov dword [esi + 0xa], eax
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f7c6
mov esp, ebp
pop ebp
ret
call fcn.100d1811
jmp 0x10015cfe
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x10054539
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x10054556
push 0x1002f634
push ebx
mov dword [ebp - 0x470], edi
call fcn.100d1811
pop ecx
pop ecx
test eax, eax
je 0x1002f6e1
lea eax, [ebp - 0x470]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100d1811
add esp, 0x10
mov dword [ebp - 0x474], eax
test eax, eax
je 0x1002f6d4
push eax
call fcn.100d1811
pop ecx
cmp eax, 3
je 0x100543db
push dword [ebp - 0x474]
call fcn.100d1811
pop ecx
test eax, eax
jne 0x100543db
cmp dword [ebp - 0x470], edi
je 0x1002f6e1
jmp 0x10054453
call sym.MSVCR120.dll__errno
push 2
pop esi
mov dword [eax], esi
call sym.MSVCR120.dll___doserrno
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x10015f03
call sym.MSVCR120.dll___doserrno
mov dword [eax], edi
call sym.MSVCR120.dll__errno
mov dword [eax], 0x16
call sym.MSVCR120.dll__invalid_parameter_noinfo
jmp 0x1002f6f2
push dword [ebp - 0x474]
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp eax, ecx
jbe 0x1002f6d4
cmp dword [ebp - 0x470], edi
je 0x10054406
push dword [ebp - 0x470]
call fcn.100d1811
pop ecx
push 0xffffffffffffffff
push edi
xor eax, eax
mov dword [ebp - 0x46c], 0x10
push edi
mov word [ebp - 0x440], ax
inc eax
push edi
push eax
push eax
push 0x7bc
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x44c], edi
call fcn.100d1811
mov ecx, edx
mov dword [esi + 0x20], eax
add esp, 0x1c
mov dword [esi + 0x24], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jmp 0x10015ebe
push dword [ebp - 0x470]
call fcn.100d1811
pop ecx
jmp 0x1002f6e1
cmp dword [ebp - 0x448], 0xa000000c
jne 0x10015d35
or dword [ebp - 0x470], 0xffffffff
mov eax, edi
test byte [ebp - 0x46c], 0x10
je 0x1005448b
mov eax, 0x2000
push edi
push 0x40
push eax
lea eax, [ebp - 0x470]
push ebx
push eax
call fcn.100d1811
add esp, 0x14
test eax, eax
jne 0x1002f6e1
cmp dword [ebp - 0x470], 0xffffffff
je 0x1002f6e1
push esi
push dword [ebp - 0x470]
call sym.MSVCR120.dll__fstat64i32
push dword [ebp - 0x470]
mov esi, eax
call sym.MSVCR120.dll__close
add esp, 0xc
jmp 0x10054543
cmp dword [ebp - 0x454], edi
jne 0x10015d41
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
jmp 0x10015db4
cmp dword [ebp - 0x45c], edi
jne 0x10015dc0
mov eax, dword [esi + 0x20]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x1c], eax
jmp 0x10015e33
cmp dword [ebp - 0x464], edi
jne 0x10015e3f
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x2c], eax
jmp 0x10015eb2
call sym.MSVCR120.dll__errno
mov dword [eax], 0x84
mov dword [esi + 0x14], edi
or edi, 0xffffffff
jmp 0x10015eec
push eax
call fcn.100d1811
or esi, 0xffffffff
pop ecx
push dword [ebp - 0x474]
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, esi
jmp 0x10015f03
push eax
call fcn.100d1811
pop ecx
push dword [ebp - 0x474]
call dword [sym.imp.kernel32.dll_FindClose]
jmp 0x1002f6f2