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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1e99
mov eax, dword fs:[0]
push eax
sub esp, 0xc9c
mov eax, dword [0x80236c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0067fc00
add esp, 0xc
mov byte [ebp - 0xc85], 0
push esi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xc90], esi
test esi, esi
je 0x4beb6f
push 0x104
lea eax, [ebp - 0x220]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4beb68
cmp word [ebp - 0x220], 0
je 0x4beb68
xor eax, eax
mov dword [ebp - 0xc5c], 0
mov dword [ebp - 0xc58], 7
mov word [ebp - 0xc6c], ax
push 0x20a
push eax
mov dword [ebp - 0xc8c], eax
lea eax, [ebp - 0x42c]
push eax
mov byte [ebp - 4], 1
call fcn.0067fc00
add esp, 0xc
xor eax, eax
mov word [ebp - 0xc3c], ax
lea eax, [ebp - 0xc3c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x1fe
ja 0x4beb5d
mov eax, dword [0x72974c]
lea edi, [ebp - 0xc3c]
movzx ecx, word [ebp - 0xc3c]
mov dword [ebp - 0x18], eax
mov ax, word [0x729750]
mov word [ebp - 0x14], ax
nop dword [eax]
push 0x104
lea eax, [ebp - 0x634]
mov word [ebp - 0x18], cx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4be9b2
lea esi, [ebp - 0x634]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4be8d0
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x4be9b2
push esi
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00695d75
add esp, 0xc
add esi, esi
test eax, eax
jne 0x4be918
cmp word [ebp + esi - 0x220], 0x5c
jne 0x4be918
lea ecx, [eax + 1]
jmp 0x4be91a
xor ecx, ecx
mov dword [ebp - 0xc8c], ecx
test ecx, ecx
je 0x4be9c0
lea eax, [ebp - 0x220]
add eax, esi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x729754
lea eax, [ebp - 0x83c]
push 0x104
push eax
call fcn.00488970
lea ecx, [ebp - 0x83c]
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be957
sub ecx, edx
lea eax, [ebp - 0x83c]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x42c]
push 0x105
push eax
call fcn.00695d1b
lea ecx, [ebp - 0x42c]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4be990
sub ecx, edx
lea eax, [ebp - 0x42c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc6c]
call fcn.0049d7d0
mov ecx, dword [ebp - 0xc8c]
nop dword [eax + eax]
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x4be9c0
test ecx, ecx
jne 0x4be9e2
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x4be8a0
jmp 0x4beb57
mov dword [ebp - 0xc44], 0
mov dword [ebp - 0xc40], 0xf
mov byte [ebp - 0xc54], 0
cmp dword [ebp - 0xc58], 8
lea edx, [ebp - 0xc6c]
mov eax, dword [ebp - 0xc5c]
lea edi, [ebp - 0xc6c]
cmovae edx, dword [ebp - 0xc6c]
lea ecx, [ebp - 0xc84]
cmovae edi, dword [ebp - 0xc6c]
mov byte [ebp - 4], 2
mov dword [ebp - 0xc74], 0
lea eax, [edx + eax*2]
mov dword [ebp - 0xc70], 0xf
mov dword [ebp - 0xc8c], eax
sub eax, edi
sar eax, 1
push eax
mov byte [ebp - 0xc84], 0
call fcn.004ad040
push dword [ebp - 0xc90]
lea ecx, [ebp - 0xc84]
push dword [ebp - 0xc8c]
push edi
call fcn.0049d000
mov ecx, dword [ebp - 0xc70]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xc40], ecx
jae 0x4beb9f
movups xmm0, xmmword [ebp - 0xc84]
movq xmm1, qword [ebp - 0xc44]
movups xmm2, xmmword [ebp - 0xc54]
movq qword [ebp - 0xc98], xmm1
mov edx, dword [ebp - 0xc94]
movups xmmword [ebp - 0xc54], xmm0
movq xmm0, qword [ebp - 0xc74]
movq qword [ebp - 0xc44], xmm0
movq qword [ebp - 0xc74], xmm1
movups xmmword [ebp - 0xca8], xmm2
movups xmmword [ebp - 0xc84], xmm2
cmp edx, 0x10
jb 0x4beb0f
mov ecx, dword [ebp - 0xca8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4beb05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bec2a
push edx
push ecx
call fcn.00669b1d
add esp, 8
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp + 0xc]
push dword [ebp + 0x1c]
cmovae ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc54]
cmp dword [ebp - 0xc40], 0x10
push ecx
cmovae eax, dword [ebp - 0xc54]
push dword [ebp - 0xc44]
push eax
call fcn.0049e4b0
add esp, 0x10
lea ecx, [ebp - 0xc54]
mov esi, eax
call fcn.00487aa0
test esi, esi
sete byte [ebp - 0xc85]
mov esi, dword [ebp - 0xc90]
lea ecx, [ebp - 0xc6c]
call fcn.004879b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x4bec04
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bebfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bec25
jmp 0x4bebfa
push dword [ebp - 0xc74]
cmp ecx, 0x10
lea eax, [ebp - 0xc84]
lea ecx, [ebp - 0xc54]
cmovae eax, dword [ebp - 0xc84]
push eax
call fcn.0049d6d0
mov edx, dword [ebp - 0xc70]
cmp edx, 0x10
jb 0x4beb0f
mov ecx, dword [ebp - 0xc84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4beb05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bec2a
jmp 0x4beb05
push edx
push ecx
call fcn.00669b1d
add esp, 8
mov al, byte [ebp - 0xc85]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669adc
mov esp, ebp
pop ebp
ret
call fcn.006892c4
call fcn.006892c4
int3