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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x100dbc1c]
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]
lea ecx, [ebp - 0x224]
mov esi, dword [ebp + 0xc]
push 0x100c71bc
mov dword [ebp - 0x22c], ebx
call fcn.10009b50
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x230]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1003f904
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1003f904
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x1003f78b
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
push eax
call fcn.10009e20
mov esi, dword [ebp - 0x22c]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov dword [esi], eax
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1003f80a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x1003f942
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.100763c5
push esi
mov esi, eax
mov dword [ebp - 0x228], eax
push 0
push esi
call fcn.100837f0
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x1003f811
push esi
call fcn.10070090
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
push eax
call fcn.10009e20
mov esi, dword [ebp - 0x22c]
add eax, 0x10
mov edx, dword [ebp - 0x224]
add esp, 8
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f80a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x1003f942
mov eax, dword [0x100b6018]
mov dword [ebp - 0x18], eax
mov ax, word [0x100b601c]
push 0x208
mov word [ebp - 0x14], ax
call fcn.100763c5
mov ebx, eax
add esp, 4
mov eax, esi
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 0x1003f87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003f8ea
push ebx
call fcn.10070090
push 2
call fcn.100763c5
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x18]
push 1
push ebx
push eax
call edi
test eax, eax
je 0x1003f8ea
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x1003f884
sub edi, ecx
lea eax, [ebp - 0x220]
sar edi, 1
push edi
push ebx
push eax
call fcn.1008cb55
add esp, 0xc
test eax, eax
je 0x1003f8c8
nop dword [eax + eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x1003f8b0
movzx eax, word [esi]
test ax, ax
je 0x1003f8ea
jmp 0x1003f837
lea eax, [ebp - 0x220]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push str._s_s
push eax
call fcn.10021c80
add esp, 0x10
push dword [ebp - 0x228]
call fcn.10070090
push ebx
call fcn.10070090
mov ebx, dword [ebp - 0x22c]
add esp, 8
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
push eax
call fcn.10009e20
mov edx, dword [ebp - 0x224]
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f940
mov ecx, dword [edx]
push edx
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.100763b4
mov esp, ebp
pop ebp
ret