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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x4ab00c]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push esi
mov eax, edx
mov dword [esp + 0x18], ecx
push edi
xor ecx, ecx
mov dword [esp + 0xc], eax
push 0x208
mov word [eax], cx
lea eax, [esp + 0x22c]
push ecx
push eax
call fcn.0046dcc0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x208
push 0
push eax
call fcn.0046dcc0
add esp, 0xc
lea eax, [esp + 0x20]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x411ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x10]
push 0x68
push eax
call fcn.0046cd70
mov edx, 0x491dd8
push esi
mov ecx, dword [eax]
test ecx, ecx
cmovne edx, ecx
push edx
push 0x4ac9d8
call fcn.0040a9b0
add esp, 0x14
push dword [esp + 0x18]
call fcn.0046bc3a
add esp, 4
push dword [esp + 0x10]
call fcn.0046bc3a
add esp, 4
mov edx, 1
mov ecx, 0x4ac9d8
push 0
call fcn.00411390
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411ec6
sub ecx, edx
sar ecx, 1
cmp word [esp + 0x20], 0x5c
lea eax, [ecx - 1]
jne 0x411fb4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop word [eax + eax]
cmp word [esp + 0x22], 0x5c
jne 0x411fb4
cmp word [esp + 0x24], 0x3f
jne 0x411fb4
cmp word [esp + 0x26], 0x5c
jne 0x411fb4
add eax, eax
lea esi, [esp + 0x20]
add esi, eax
cmp word [esi], 0x5c
jne 0x411fb4
cmp eax, 0x208
jae 0x4120ba
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x228]
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov ecx, 0x5c
mov word [esi], cx
test eax, eax
je 0x412096
lea eax, [esp + 0x228]
push eax
push dword [esp + 0x20]
call fcn.0046ff51
add esp, 8
test eax, eax
lea eax, [esp + 0x20]
je 0x41207c
push 0x104
push eax
push edi
call ebx
test eax, eax
je 0x41201a
lea ecx, [esp + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f96
sub ecx, edx
sar ecx, 1
cmp word [esp + 0x20], 0x5c
lea eax, [ecx - 1]
je 0x411ef0
lea eax, [esp + 0x10]
push 0x69
push eax
call fcn.0046cd70
mov ecx, 0x491dd8
mov edx, 1
push 0
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
call fcn.00411390
add esp, 0xc
push dword [esp + 0x18]
call fcn.0046bc3a
add esp, 4
push dword [esp + 0x10]
call fcn.0046bc3a
add esp, 4
mov esi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
cmp word [esi], 0x5c
mov ecx, dword [esp + 0x434]
pop edi
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.0046b9f0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x411ff3
lea eax, [esp + 0x10]
push 0x6b
push eax
call fcn.0046cd70
mov ecx, 0x491dd8
push esi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 0x4ac9d8
call fcn.0040a9b0
add esp, 0x14
push dword [esp + 0x18]
call fcn.0046bc3a
add esp, 4
push dword [esp + 0x10]
call fcn.0046bc3a
add esp, 4
mov edx, 1
mov ecx, 0x4ac9d8
push 0
call fcn.00411390
jmp 0x411ff0
mov esi, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
push 0x104
push esi
call fcn.00475406
add esp, 0x10
jmp 0x411ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x10]
push 0x6a
push eax
call fcn.0046cd70
mov edx, 0x491dd8
push esi
mov ecx, dword [eax]
test ecx, ecx
cmovne edx, ecx
push edx
jmp 0x412041
call fcn.0046bb60
int3