Function at 0x1006ce00
Capabilities:
Get common file path
Get disk information
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x1009c856
mov eax, dword fs:[0]
push eax
sub esp, 0x800
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x7fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cd8ec]
xor eax, esp
push eax
lea eax, [esp + 0x814]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x824]
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x81c], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
call fcn.1006b6d0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov esi, 1
mov ecx, ebx
mov dword [esp + 0x81c], esi
call fcn.1006b6d0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x38], esi
call fcn.1006c2d0
add esp, 4
lea ecx, [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0x81c], 2
je 0x1006ceb5
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x30]
mov edx, dword [ecx]
push esi
push ecx
push eax
push edx
push eax
lea ecx, [esp + 0x2c]
call fcn.1006ba60
lea ecx, [esp + 0x24]
mov byte [esp + 0x81c], 1
call fcn.1004d490
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax]
mov dword [esp + 0x28], eax
cmp ebp, dword [esp + 0x28]
je 0x1006cf27
cmp ebp, eax
jne 0x1006cee0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
push ecx
push esi
mov ecx, ebx
mov dword [esp + 0x20], edx
call fcn.10010d50
push 1
mov ecx, ebx
mov edi, eax
call fcn.1006b780
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
mov dword [edx], edi
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jne 0x1006cf20
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov ebp, dword [ebp]
xor edi, edi
jmp 0x1006ced0
push 0x208
lea eax, [esp + 0x3fe]
push edi
push eax
mov word [esp + 0x404], di
call sub.MSVCR80.dll_memset
push 0x2b0
lea ecx, [esp + 0x50]
push edi
push ecx
mov dword [esp + 0x54], edi
call sub.MSVCR80.dll_memset
push 0x208
lea edx, [esp + 0x622]
push edi
push edx
mov word [esp + 0x628], di
call sub.MSVCR80.dll_memset
push 0x104
lea eax, [esp + 0x319]
push edi
push eax
mov byte [esp + 0x320], 0
call sub.MSVCR80.dll_memset
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x104
lea ecx, [esp + 0x608]
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esp + 0x14], edi
push 0x54
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, edi
mov byte [esp + 0x81c], 3
je 0x1006cfdb
mov ecx, eax
call fcn.1006a9c0
mov esi, eax
jmp 0x1006cfdd
xor esi, esi
mov eax, dword [esp + 0x14]
mov ecx, eax
mov edx, 1
shl edx, cl
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x81c], 1
mov dword [esp + 0x24], esi
test ecx, edx
jne 0x1006d01b
cmp esi, edi
je 0x1006d169
mov ecx, esi
call fcn.1006aa20
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1006d169
movzx edx, word [esp + 0x604]
add eax, 0x41
cmp edx, eax
je 0x1006cffe
push eax
lea eax, [esp + 0x3fc]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x3f8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1006d063
cmp eax, 2
je 0x1006d063
cmp eax, 4
je 0x1006d063
cmp eax, 5
jne 0x1006cffe
push 0x100ae048
lea ecx, [esi + 0x38]
call dword [0x1009f138]
push 0x105
lea edx, [esp + 0x2f4]
push edi
push edx
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x404]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1006d091
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3fc]
push eax
lea ecx, [esp + 0x2f8]
push ecx
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea edx, [esp + 0x2f0]
push edx
lea ecx, [esi + 0x1c]
call dword [0x1009f138]
push 0x200
push 0x2b4
lea eax, [esp + 0x44]
push eax
push edi
lea ecx, [esp + 0x408]
push ecx
call ebp
push 0x105
lea edx, [esp + 0x2f4]
push edi
push edx
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x54]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x1006d106
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2f8]
push ecx
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea edx, [esp + 0x2f0]
push edx
mov ecx, esi
call dword [0x1009f138]
mov esi, dword [ebx + 4]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.10010d50
push 1
mov ecx, ebx
mov edi, eax
call fcn.1006b780
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
xor edi, edi
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, 0x20
mov dword [esp + 0x14], eax
jl 0x1006cfb6
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x20], edi
je 0x1006d1ad
mov esi, dword [eax]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x20]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x1006d198
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x814]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7fc]
xor ecx, esp
call fcn.10090e24
add esp, 0x80c
ret