Function at 0x100316d0
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105c06
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x1014b520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x224], ebx
call fcn.10001bd0
mov ecx, eax
test ecx, ecx
je 0x100319cb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x1010e2cc
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.1001afc0
test al, al
jne 0x1003175a
push 0
push 0x1010e2cc
lea ecx, [ebp - 0x228]
call fcn.100028b0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x224]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1003197a
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100d6e30
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1003197a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x1003180e
mov esi, dword [ebp - 0x228]
add esi, 0xfffffff0
push esi
call fcn.10001930
mov edi, dword [ebp - 0x230]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10031807
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x100319af
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100bad02
push esi
mov esi, eax
mov dword [ebp - 0x22c], eax
push 0
push esi
call fcn.100d6e30
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x1003188b
push esi
call fcn.100bad0b
mov esi, dword [ebp - 0x228]
add esi, 0xfffffff0
push esi
call fcn.10001930
mov edi, dword [ebp - 0x230]
add eax, 0x10
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10031807
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x100319af
mov eax, dword [0x101102ec]
mov dword [ebp - 0x18], eax
mov ax, word [0x101102f0]
push 0x208
mov word [ebp - 0x14], ax
call fcn.100bad02
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x22c]
movzx eax, word [eax]
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push ebx
push eax
call edi
test eax, eax
jne 0x100318fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10031960
push ebx
call fcn.100bad0b
push 2
call fcn.100bad02
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x18]
push 1
push ebx
push eax
call edi
test eax, eax
je 0x10031960
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10031902
sub edi, ecx
lea eax, [ebp - 0x220]
sar edi, 1
push edi
push ebx
push eax
call fcn.100dfd3a
add esp, 0xc
test eax, eax
je 0x1003193e
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10031926
movzx eax, word [esi]
test ax, ax
je 0x10031960
jmp 0x100318b5
lea eax, [ebp - 0x220]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x228]
push str._s_s
push eax
call fcn.10001aa0
add esp, 0x10
push dword [ebp - 0x22c]
call fcn.100bad0b
push ebx
call fcn.100bad0b
mov ebx, dword [ebp - 0x230]
add esp, 8
mov esi, dword [ebp - 0x228]
add esi, 0xfffffff0
push esi
call fcn.10001930
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100319ad
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bb073
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001900
int3