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

Disassembly:
push 0xffffffffffffffff
push 0x1009c9e6
mov eax, dword fs:[0]
push eax
sub esp, 0x7fc
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0x7f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cd8ec]
xor eax, esp
push eax
lea eax, [esp + 0x810]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x820]
xor edi, edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x818], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
call fcn.1006b6d0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov esi, 1
mov ecx, ebx
mov dword [esp + 0x818], esi
call fcn.1006b6d0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov eax, dword [esp + 0x824]
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x38], esi
call fcn.1006c640
add esp, 8
lea edx, [esp + 0x14]
cmp edx, eax
mov byte [esp + 0x818], 2
je 0x1006dd4d
mov ecx, dword [eax + 4]
mov esi, dword [esp + 0x34]
mov edx, dword [ecx]
push esi
push ecx
push eax
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.1006ba60
lea ecx, [esp + 0x24]
mov byte [esp + 0x818], 1
call fcn.1004d490
mov eax, dword [esp + 0x18]
mov ebp, dword [eax]
mov dword [esp + 0x28], eax
cmp ebp, dword [esp + 0x28]
je 0x1006ddbf
cmp ebp, eax
jne 0x1006dd78
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x20]
push ecx
push edx
push esi
mov ecx, ebx
mov dword [esp + 0x2c], eax
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
mov eax, dword [esp + 0x18]
cmp ebp, eax
jne 0x1006ddb8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov ebp, dword [ebp]
xor edi, edi
jmp 0x1006dd68
push 0x208
lea ecx, [esp + 0x3fa]
push edi
push ecx
mov word [esp + 0x400], di
call sub.MSVCR80.dll_memset
push 0x2b0
lea edx, [esp + 0x4c]
push edi
push edx
mov dword [esp + 0x50], edi
call sub.MSVCR80.dll_memset
push 0x208
lea eax, [esp + 0x61e]
push edi
push eax
mov word [esp + 0x624], di
call sub.MSVCR80.dll_memset
push 0x104
lea ecx, [esp + 0x315]
push edi
push ecx
mov byte [esp + 0x31c], 0
call sub.MSVCR80.dll_memset
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push 0x104
lea edx, [esp + 0x604]
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebp, ebp
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 + 0x818], 3
je 0x1006de6b
mov ecx, eax
call fcn.1006a9c0
mov esi, eax
jmp 0x1006de6d
xor esi, esi
mov ecx, ebp
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x818], 1
mov dword [esp + 0x24], esi
test ecx, eax
jne 0x1006dea7
cmp esi, edi
je 0x1006e013
mov ecx, esi
call fcn.1006aa20
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x1006e013
cmp byte [esp + 0x828], 0
jne 0x1006dec0
movzx eax, word [esp + 0x600]
lea edx, [ebp + 0x41]
cmp eax, edx
je 0x1006de8a
lea ecx, [ebp + 0x41]
push ecx
lea edx, [esp + 0x3f8]
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1006defc
cmp eax, 2
je 0x1006defc
cmp eax, 4
je 0x1006defc
cmp eax, 5
jne 0x1006de8a
push 0x100ae048
lea ecx, [esi + 0x38]
call dword [0x1009f138]
push 0x105
lea ecx, [esp + 0x2f0]
push edi
push ecx
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x400]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1006df30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x3f8]
push edx
lea eax, [esp + 0x2f4]
push eax
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea ecx, [esp + 0x2ec]
push ecx
lea ecx, [esi + 0x1c]
call dword [0x1009f138]
push 0x200
push 0x2b4
lea edx, [esp + 0x40]
push edx
push edi
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x105
lea ecx, [esp + 0x2f0]
push edi
push ecx
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x50]
add esp, 0xc
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x1006dfb0
sub eax, ecx
sar eax, 1
push eax
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x2f4]
push eax
push 0xfde9
call fcn.1007e4c0
add esp, 0x10
lea ecx, [esp + 0x2ec]
push ecx
mov ecx, esi
call dword [0x1009f138]
mov esi, dword [ebx + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
push eax
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
add ebp, 1
cmp ebp, 0x20
jl 0x1006de46
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
mov dword [esp + 0x1c], edi
je 0x1006e055
lea ebx, [ebx]
mov esi, dword [eax]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x1c]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x1006e040
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x810]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7f8]
xor ecx, esp
call fcn.10090e24
add esp, 0x808
ret