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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10153f36
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x10198e28]
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 - 0x22c], ebx
mov dword [ebp - 0x230], ebx
call fcn.10003000
mov ecx, eax
test ecx, ecx
je 0x100349d5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov eax, 0x1015b988
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x224]
test eax, 0xffff0000
jne 0x10034751
movzx eax, ax
push eax
call fcn.10003630
jmp 0x1003475d
push 0
push 0x1015b988
call fcn.10006430
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
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 0x10034984
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.101293f0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10034984
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x10034811
mov esi, dword [ebp - 0x224]
add esi, 0xfffffff0
push esi
call fcn.10005580
mov edi, dword [ebp - 0x22c]
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 0x1003480a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x100349b9
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.1011c0a0
push esi
mov esi, eax
mov dword [ebp - 0x228], eax
push 0
push esi
call fcn.101293f0
add esp, 0x10
push esi
push edi
call ebx
test eax, eax
jne 0x1003488e
push esi
call fcn.1011bf9d
mov esi, dword [ebp - 0x224]
add esi, 0xfffffff0
push esi
call fcn.10005580
mov edi, dword [ebp - 0x22c]
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 0x1003480a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x100349b9
mov eax, dword [0x1015f614]
mov dword [ebp - 0x18], eax
mov ax, word [0x1015f618]
push 0x208
mov word [ebp - 0x14], ax
call fcn.1011c0a0
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x228]
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 0x10034900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1003496a
push ebx
call fcn.1011bf9d
push 2
call fcn.1011c0a0
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x18]
push 1
push ebx
push eax
call edi
test eax, eax
je 0x1003496a
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10034905
sub edi, ecx
lea eax, [ebp - 0x220]
sar edi, 1
push edi
push ebx
push eax
call fcn.1013a3d5
add esp, 0xc
test eax, eax
je 0x10034948
nop dword [eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10034930
movzx eax, word [esi]
test ax, ax
je 0x1003496a
jmp 0x100348b8
lea eax, [ebp - 0x220]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push 0x1015f61c
push eax
call fcn.10003bb0
add esp, 0x10
push dword [ebp - 0x228]
call fcn.1011bf9d
push ebx
call fcn.1011bf9d
mov ebx, dword [ebp - 0x22c]
add esp, 8
mov esi, dword [ebp - 0x224]
add esi, 0xfffffff0
push esi
call fcn.10005580
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 0x100349b7
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.1011bafc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002c10
int3