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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fbc2
mov eax, dword fs:[0]
push eax
sub esp, 0xc38
mov eax, dword [0x4bb924]
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 0x40b6ca
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 0x40b6ca
test dword [ebp - 0xc34], 0x80000
jne 0x40b6ca
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b520
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 0x40b584
xor eax, eax
mov dword [ebp - 0xc18], 0
mov dword [ebp - 0xc14], 7
mov word [ebp - 0xc28], ax
jmp 0x40b641
sar ecx, 1
mov dword [ebp - 0xc38], ecx
cmp ecx, 0x7ffffffe
ja 0x40b709
cmp ecx, 8
jae 0x40b5d3
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.00464490
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0xc28], ax
jmp 0x40b63b
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40b5e7
mov esi, 0x7ffffffe
jmp 0x40b5f2
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0xc28]
call fcn.00407820
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.00464490
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 0x40b67b
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 0x40b690
lea ecx, [ebp - 0xc28]
push ecx
push eax
mov ecx, edi
call fcn.0040b240
mov ecx, dword [ebp - 0xc14]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x40b6ca
mov edx, dword [ebp - 0xc28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b6c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b70e
push ecx
push edx
call fcn.00462a18
add esp, 8
push 0x200
lea eax, [ebp - 0xc10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40b4b0
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.00462c85
mov esp, ebp
pop ebp
ret
call fcn.00407780
call fcn.0046e37f
int3