Function at 0x1001e870
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005c353
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x1006e020]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov edi, ecx
call fcn.100148b0
mov eax, dword [edi]
cmp dword [eax - 8], 0
je 0x1001ee6d
mov ebx, dword [0x1006eb44]
mov ecx, 0x1005dbc8
shr ecx, 0x10
mov dword [esp + 0x10], ebx
jne 0x1001e8f2
mov edx, 0x1005dbc8
movzx eax, dx
push eax
lea ecx, [esp + 0x14]
call fcn.10013a10
jmp 0x1001e928
push 0x1005dbc8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x1001e92c
mov ecx, esi
lea edx, [esp + 0x10]
call fcn.10011c80
test eax, eax
je 0x1001e928
mov ecx, dword [esp + 0x10]
lea eax, [esi + esi]
push eax
push 0x1005dbc8
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x130], 0
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x1001e979
mov eax, dword [esp + 0x38]
call fcn.10015ac0
lea edx, [ebx - 0xc]
cmp edx, 0x1006eb34
je 0x1001e96f
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001e96f
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, 1
jmp 0x1001ee6f
mov ecx, dword [edi]
call fcn.1004ac10
test al, al
jne 0x1001e99a
lea eax, [ebx - 0xc]
cmp eax, 0x1006eb34
je 0x1001ee6d
lea esi, [ebx - 0xc]
jmp 0x1001ee59
mov ebx, dword [edi]
lea esi, [esp + 0x14]
call fcn.10015b70
mov byte [esp + 0x130], 1
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], 0
jne 0x1001e9bb
xor ebx, ebx
jmp 0x1001e9c7
lea ecx, [esp + 0x14]
push ecx
call fcn.1001e170
mov ebx, eax
lea edx, [esi - 0xc]
cmp edx, 0x1006eb34
mov byte [esp + 0x130], 0
je 0x1001e9f1
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001e9f1
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test ebx, ebx
je 0x1001ea13
mov eax, dword [esp + 0x38]
push eax
mov ecx, edi
call fcn.1001e260
lea esi, [esp + 0x10]
mov edi, eax
call fcn.10015b40
mov eax, edi
jmp 0x1001ee6f
lea ecx, [esp + 0x44]
push ecx
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], eax
jle 0x1001ee47
lea ebx, [esp + 0x44]
mov eax, dword [edi]
push 2
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x1001ea53
add esi, 4
add ebx, 8
cmp esi, dword [esp + 0x14]
jl 0x1001ea32
jmp 0x1001ee47
cmp esi, dword [esp + 0x14]
jge 0x1001ee47
call fcn.1000c820
mov dword [esp + 0x30], eax
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x30]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x30]
mov dword [eax], eax
mov eax, dword [esp + 0x30]
mov dword [eax + 8], eax
mov dword [esp + 0x34], 0
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x134], 2
call fcn.1001e470
test eax, eax
jne 0x1001eabe
mov byte [esp + 0x130], al
lea eax, [esp + 0x2c]
call fcn.10009a50
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
jmp 0x1001ee54
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.10015820
mov byte [esp + 0x130], 3
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
lea ecx, [eax + 1]
lea ebx, [esp + 0x14]
call fcn.10015350
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, ebx
call fcn.10011c20
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [edi - 8], eax
mov word [edi + eax*2], 0
mov eax, dword [esp + 0x30]
mov esi, dword [eax]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
jmp 0x1001eb20
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], edx
je 0x1001eb38
lea eax, [esp + 0x2c]
cmp ebx, eax
je 0x1001eb3e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x40]
je 0x1001ee14
test ebx, ebx
jne 0x1001eb52
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [ebx + 4]
jne 0x1001eb5d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 0xc]
cmp dword [ebx - 0xc], 0
jl 0x1001eb76
mov dword [esp + 0x1c], ebx
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1001eb9f
test ebx, ebx
mov ecx, dword [0x1006eb44]
mov dword [esp + 0x1c], ecx
jne 0x1001eb88
xor eax, eax
jmp 0x1001eb8f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
mov ebx, eax
lea esi, [esp + 0x20]
call fcn.100158a0
mov esi, dword [esp + 0x28]
mov byte [esp + 0x130], 4
mov edx, dword [esp + 0x24]
cmp esi, dword [edx + 4]
jne 0x1001ebb6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 0x10
push esi
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
call fcn.100159b0
lea eax, [edi - 0xc]
mov byte [esp + 0x130], 5
cmp dword [eax], 0
jl 0x1001ebe5
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1001ec02
mov ecx, dword [0x1006eb44]
push edi
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov ebx, eax
lea esi, [esp + 0x1c]
call fcn.100158a0
mov byte [esp + 0x130], 6
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.10014800
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 8]
cmp eax, dword [edi - 8]
jne 0x1001ecb1
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x1001ec4d
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1001ec4d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1001ec76
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x1001ec76
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0x130], 3
mov esi, dword [esp + 0x1c]
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x1001ec9f
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1001ec9f
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea esi, [esp + 0x24]
call fcn.1000af80
mov esi, dword [esp + 0x28]
jmp 0x1001eb20
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x18]
call fcn.100159b0
push eax
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x20]
mov byte [esp + 0x138], 7
call fcn.100159b0
mov ebx, dword [esp + 0x38]
mov edi, eax
mov eax, ebx
mov byte [esp + 0x130], 8
call fcn.10015ac0
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1001ed1f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1001ed1f
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0x130], 6
mov eax, dword [esp + 0x24]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1001ed50
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1001ed50
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.10014800
lea ecx, [esi - 0xc]
cmp ecx, 0x1006eb34
je 0x1001ed79
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x1001ed79
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x20]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1001eda2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x1001eda2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1001edc4
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1001edc4
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1001ede6
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x1001ede6
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esp + 0x2c]
mov byte [esp + 0x130], 0
call fcn.10009a50
mov esi, dword [esp + 0x10]
lea eax, [esi - 0xc]
cmp eax, 0x1006eb34
je 0x1001e96f
add esi, 0xfffffff4
push esi
call edi
jmp 0x1001e962
lea ecx, [edi - 0xc]
cmp ecx, 0x1006eb34
je 0x1001ee36
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001ee36
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [esp + 0x2c]
mov byte [esp + 0x130], 0
call fcn.10009a50
mov eax, dword [esp + 0x10]
lea edx, [eax - 0xc]
cmp edx, 0x1006eb34
je 0x1001ee6d
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1001ee6d
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10056d50
mov esp, ebp
pop ebp
ret 4