Function at 0x10002db0
Capabilities:
Get common file path
Get disk information
Get disk size
Get file system object information
Get session user name

Disassembly:
sub esp, 0xc8c
push ebx
push ebp
push esi
lea eax, [esp + 0x134]
push edi
mov edi, ecx
push eax
push 0x100
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0x100
mov byte [esp + 0x4a4], 0xca
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x398]
xor ebx, ebx
push ecx
push edx
lea ebp, [esp + 0x140]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x398]
push str.SYSTEM
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
sete cl
mov byte [esp + 0x49d], cl
mov ecx, edi
call fcn.10002ad0
lea edx, [esp + 0x49e]
mov esi, eax
push edx
push ebx
push esi
push 0x10
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x49e]
push eax
call esi
mov ebx, eax
mov al, byte [esp + 0x138]
add ebx, 3
test al, al
je 0x10002fbf
jmp 0x10002e80
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x34]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
push eax
push eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea edx, [esp + 0x23c]
push 0x160
push edx
push 0x80
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [esp + 0x348]
push eax
call esi
mov edi, eax
lea ecx, [esp + 0x34]
inc edi
push ecx
mov dword [esp + 0x34], edi
call esi
inc eax
mov dword [esp + 0x14], eax
mov al, byte [ebp]
cmp al, 0x41
je 0x10002f2c
cmp al, 0x42
je 0x10002f2c
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10002f2c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0x14
call fcn.1000d4d0
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, 0x14
call fcn.1000d4d0
mov dword [esp + 0x10], eax
jmp 0x10002f32
xor esi, esi
mov dword [esp + 0x10], esi
mov cl, byte [ebp]
push ebp
mov byte [esp + ebx + 0x4a0], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [esp + 0x10]
mov ecx, edi
mov byte [esp + ebx + 0x49d], al
mov eax, ecx
mov dword [esp + ebx + 0x49e], esi
lea esi, [esp + 0x348]
lea edi, [esp + ebx + 0x4a6]
mov dword [esp + ebx + 0x4a2], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x30]
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ebx]
lea esi, [esp + 0x38]
lea edi, [esp + edx + 0x4aa]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
add ecx, eax
lea ebx, [ebx + ecx + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [eax + ebp + 1]
cmp byte [ebp], 0
jne 0x10002e7a
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x49c]
push ebx
push edx
mov ecx, edi
call fcn.10008050
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8c
ret