Function at 0x4163f0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2f02
mov eax, dword fs:[0]
push eax
sub esp, 0xc38
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc40], edi
mov dword [ebp - 0xc30], 0
mov dword [ebp - 0xc3c], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x200
lea eax, [ebp - 0xc10]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0xc30], 1
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov esi, eax
mov dword [ebp - 0xc2c], esi
nop word [eax + eax]
lea eax, [ebp - 0xc44]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0xc10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x41669a
push 0
push 0
lea eax, [ebp - 0xc34]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41669a
test dword [ebp - 0xc34], 0x80000
jne 0x41669a
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4164f0
sub eax, edx
mov dword [ebp - 0xc18], 0
sar eax, 1
lea edx, [ebp - 0x810]
xorps xmm0, xmm0
mov dword [ebp - 0xc14], 0
movups xmmword [ebp - 0xc28], xmm0
lea ecx, [eax + eax]
lea eax, [ebp - 0x810]
add eax, ecx
cmp edx, eax
jne 0x416554
xor eax, eax
mov dword [ebp - 0xc18], 0
mov dword [ebp - 0xc14], 7
mov word [ebp - 0xc28], ax
jmp 0x416611
sar ecx, 1
mov dword [ebp - 0xc38], ecx
cmp ecx, 0x7ffffffe
ja 0x4166d9
cmp ecx, 8
jae 0x4165a3
lea esi, [ecx + ecx]
mov dword [ebp - 0xc18], ecx
push esi
lea eax, [ebp - 0x810]
mov dword [ebp - 0xc14], 7
push eax
lea eax, [ebp - 0xc28]
push eax
call fcn.00472fb0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0xc28], ax
jmp 0x41660b
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x4165b7
mov esi, SysReAllocString
jmp 0x4165c2
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0xc28]
call fcn.00412250
mov edi, eax
mov dword [ebp - 0xc14], esi
mov eax, dword [ebp - 0xc38]
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0xc28], edi
lea esi, [eax + eax]
push esi
lea eax, [ebp - 0x810]
push eax
push edi
call fcn.00472fb0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0xc3c]
mov esi, dword [ebp - 0xc2c]
mov eax, dword [edi + 4]
mov dword [ebp - 4], 1
cmp eax, dword [edi + 8]
je 0x41664b
movups xmm0, xmmword [ebp - 0xc28]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0xc18]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0xc28], ax
jmp 0x416660
lea ecx, [ebp - 0xc28]
push ecx
push eax
mov ecx, edi
call fcn.00416210
mov ecx, dword [ebp - 0xc14]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x41669a
mov edx, dword [ebp - 0xc28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x416690
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4166de
push ecx
push edx
call fcn.0047153d
add esp, 8
push 0x200
lea eax, [ebp - 0xc10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x416480
push esi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, edi
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.004717aa
mov esp, ebp
pop ebp
ret
call fcn.00412150
call fcn.0047ce9f
int3