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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x432018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x620]
mov edi, ecx
push 0
push eax
call fcn.0040d360
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
call fcn.0040d360
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x640], eax
cmp eax, 0xffffffff
jne 0x402b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ba30
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b41
sub ecx, edx
sar ecx, 1
cmp word [ebp - 0x210], 0x5c
lea eax, [ecx - 1]
jne 0x402da3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
cmp word [ebp - 0x20e], 0x5c
jne 0x402da3
cmp word [ebp - 0x20c], 0x3f
jne 0x402da3
cmp word [ebp - 0x20a], 0x5c
jne 0x402da3
add eax, eax
lea esi, [ebp - 0x210]
add esi, eax
cmp word [esi], 0x5c
jne 0x402da3
cmp eax, 0x208
jae 0x402dc8
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x620]
push 0x104
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ecx, 0x5c
mov word [esi], cx
test eax, eax
je 0x402dc4
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.0040d360
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
lea eax, [ebp - 0x63c]
add esp, 0xc
mov dword [ebp - 0x63c], 0
push eax
push 0x104
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x402c67
nop dword [eax]
call ebx
cmp eax, 0xea
jne 0x402d5e
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0
push eax
push 0x104
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
je 0x402c30
cmp word [ebp - 0x418], 0
lea esi, [ebp - 0x418]
je 0x402d5e
nop dword [eax + eax]
mov ecx, esi
mov dword [ebp - 0x628], 0
xorps xmm0, xmm0
mov dword [ebp - 0x624], 0
movups xmmword [ebp - 0x638], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ca3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x638]
call fcn.004072b0
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x402ce4
movups xmm0, xmmword [ebp - 0x638]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x628]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x402d33
lea ecx, [ebp - 0x638]
push ecx
push eax
mov ecx, edi
call fcn.00407da0
mov ecx, dword [ebp - 0x624]
cmp ecx, 8
jb 0x402d33
mov edx, dword [ebp - 0x638]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402dcd
push ecx
push edx
call fcn.0040bf76
add esp, 8
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402d40
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x402c80
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
je 0x402dc0
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d83
sub ecx, edx
sar ecx, 1
cmp word [ebp - 0x210], 0x5c
lea eax, [ecx - 1]
je 0x402b70
push dword [ebp - 0x640]
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ba30
mov esp, ebp
pop ebp
ret
call ebx
jmp 0x402da3
call ebx
jmp 0x402da3
call fcn.0040bc1a
call fcn.004140fb
int3