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

Disassembly:
push 0xffffffffffffffff
push 0x1009be26
mov eax, dword fs:[0]
push eax
sub esp, 0x800
mov eax, dword [0x100cc8ec]
xor eax, esp
mov dword [esp + 0x7fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cc8ec]
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.1006ae80
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov esi, 1
mov ecx, ebx
mov dword [esp + 0x81c], esi
call fcn.1006ae80
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x38], esi
call fcn.1006ba40
add esp, 4
lea ecx, [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0x81c], 2
je 0x1006c625
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.1006b210
lea ecx, [esp + 0x24]
mov byte [esp + 0x81c], 1
call fcn.10046990
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax]
mov dword [esp + 0x28], eax
cmp ebp, dword [esp + 0x28]
je 0x1006c697
cmp ebp, eax
jne 0x1006c650
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.10010cc0
push 1
mov ecx, ebx
mov edi, eax
call fcn.1006af30
mov dword [esi + 4], edi
mov edx, dword [edi + 4]
mov dword [edx], edi
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jne 0x1006c690
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov ebp, dword [ebp]
xor edi, edi
jmp 0x1006c640
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 0x1006c74b
mov ecx, eax
call fcn.1006a1a0
mov esi, eax
jmp 0x1006c74d
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 0x1006c78b
cmp esi, edi
je 0x1006c8d9
mov ecx, esi
call fcn.1006a200
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1006c8d9
movzx edx, word [esp + 0x604]
add eax, 0x41
cmp edx, eax
je 0x1006c76e
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 0x1006c7d3
cmp eax, 2
je 0x1006c7d3
cmp eax, 4
je 0x1006c7d3
cmp eax, 5
jne 0x1006c76e
push 0x100aceac
lea ecx, [esi + 0x38]
call dword [0x1009e138]
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 0x1006c801
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x3fc]
push eax
lea ecx, [esp + 0x2f8]
push ecx
push 0xfde9
call fcn.1007db60
add esp, 0x10
lea edx, [esp + 0x2f0]
push edx
lea ecx, [esi + 0x1c]
call dword [0x1009e138]
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 0x1006c876
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2f8]
push ecx
push 0xfde9
call fcn.1007db60
add esp, 0x10
lea edx, [esp + 0x2f0]
push edx
mov ecx, esi
call dword [0x1009e138]
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.10010cc0
push 1
mov ecx, ebx
mov edi, eax
call fcn.1006af30
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 0x1006c726
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 0x1006c91d
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 0x1006c908
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.10090524
add esp, 0x80c
ret