Function at 0x6a2d78
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0xa
add esp, 0xfffff004
push eax
dec eax
jne 0x6a2d81
mov eax, dword [ebp - 4]
add esp, 0xffffff50
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xa09c], edx
mov dword [ebp - 0xa0b0], edx
mov dword [ebp - 0xa0b4], edx
mov dword [ebp - 0xa078], edx
mov dword [ebp - 0xa07c], edx
mov dword [ebp - 0xa080], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x6a31e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.006a28ac
xor eax, eax
push ebp
push 0x6a3144
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x226]
xor ecx, ecx
mov edx, 0x20a
call fcn.0040776c
push 0x104
lea eax, [ebp - 0x226]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
push 0x6a3200
lea eax, [ebp - 0xa080]
lea edx, [ebp - 0x226]
mov ecx, 0x105
call fcn.0040a6f8
mov eax, dword [ebp - 0xa080]
movzx edx, word [eax]
lea eax, [ebp - 0xa07c]
call fcn.0040a664
push dword [ebp - 0xa07c]
push 0x6a3218
lea eax, [ebp - 0xa078]
mov edx, 3
call fcn.0040a930
mov eax, dword [ebp - 0xa078]
call fcn.0040a644
mov edx, eax
lea eax, [ebp - 0x426]
call fcn.00425438
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x426]
push eax
call sub.kernel32.dll_CreateFileW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x6a313a
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x434]
xor ecx, ecx
mov edx, 0xc
call fcn.0040776c
xor eax, eax
mov dword [ebp - 0x434], eax
xor eax, eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x2b44]
xor ecx, ecx
mov edx, 0x2710
call fcn.0040776c
push 0
lea eax, [ebp - 0x18]
push eax
push 0x2710
lea eax, [ebp - 0x2b44]
push eax
push 0xc
lea eax, [ebp - 0x434]
push eax
push 0x2d1400
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x6a3131
lea eax, [ebp - 0x2b44]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x7964]
xor ecx, ecx
mov edx, 0x2710
call fcn.0040776c
xor eax, eax
push ebp
push 0x6a2f84
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6a2f73
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x7964]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x2b44]
xor ecx, ecx
call fcn.006a2b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a2f7a
lea eax, [ebp - 4]
call fcn.00409b24
pop eax
jmp eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6a314e
lea eax, [ebp - 0xa0b4]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
mov ecx, 0
call fcn.0040a40c
mov edx, dword [ebp - 0xa0b4]
lea eax, [ebp - 0xa0b0]
call fcn.0040a714
mov eax, dword [ebp - 0xa0b0]
lea edx, [ebp - 0xa0ac]
call fcn.006509a0
lea eax, [ebp - 0xa0ac]
lea edx, [ebp - 0xa09c]
call fcn.00650914
mov edx, dword [ebp - 0xa09c]
mov eax, dword [ebp - 0x10]
call fcn.00409ef0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a31ec
lea eax, [ebp - 0xa0b4]
call fcn.00409b24
lea eax, [ebp - 0xa0b0]
call fcn.00409b00
lea eax, [ebp - 0xa09c]
call fcn.00409b00
lea eax, [ebp - 0xa080]
mov edx, 3
call fcn.00409b60
pop eax
jmp eax