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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x49f008]
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.00465300
add esp, 0xc
lea eax, [esp + 0x20]
push 0x208
push 0
push eax
call fcn.00465300
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 0x41196f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x10]
push 0x68
push eax
call fcn.004643b0
mov edx, 0x487d18
push esi
mov ecx, dword [eax]
test ecx, ecx
cmovne edx, ecx
push edx
push 0x4a0918
call fcn.0040a5b0
add esp, 0x14
push dword [esp + 0x18]
call fcn.004634ea
add esp, 4
push dword [esp + 0x10]
call fcn.004634ea
add esp, 4
mov edx, 1
mov ecx, 0x4a0918
push 0
call fcn.00410e40
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004632a0
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 0x411976
sub ecx, edx
sar ecx, 1
cmp word [esp + 0x20], 0x5c
lea eax, [ecx - 1]
jne 0x411a64
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
nop word [eax + eax]
cmp word [esp + 0x22], 0x5c
jne 0x411a64
cmp word [esp + 0x24], 0x3f
jne 0x411a64
cmp word [esp + 0x26], 0x5c
jne 0x411a64
add eax, eax
lea esi, [esp + 0x20]
add esi, eax
cmp word [esi], 0x5c
jne 0x411a64
cmp eax, 0x208
jae 0x411b6a
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 0x411b46
lea eax, [esp + 0x228]
push eax
push dword [esp + 0x20]
call fcn.00467591
add esp, 8
test eax, eax
lea eax, [esp + 0x20]
je 0x411b2c
push 0x104
push eax
push edi
call ebx
test eax, eax
je 0x411aca
lea ecx, [esp + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411a46
sub ecx, edx
sar ecx, 1
cmp word [esp + 0x20], 0x5c
lea eax, [ecx - 1]
je 0x4119a0
lea eax, [esp + 0x10]
push 0x69
push eax
call fcn.004643b0
mov ecx, 0x487d18
mov edx, 1
push 0
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
call fcn.00410e40
add esp, 0xc
push dword [esp + 0x18]
call fcn.004634ea
add esp, 4
push dword [esp + 0x10]
call fcn.004634ea
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.004632a0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x411aa3
lea eax, [esp + 0x10]
push 0x6b
push eax
call fcn.004643b0
mov ecx, 0x487d18
push esi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push 0x4a0918
call fcn.0040a5b0
add esp, 0x14
push dword [esp + 0x18]
call fcn.004634ea
add esp, 4
push dword [esp + 0x10]
call fcn.004634ea
add esp, 4
mov edx, 1
mov ecx, 0x4a0918
push 0
call fcn.00410e40
jmp 0x411aa0
mov esi, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
push 0x104
push esi
call fcn.0046c40e
add esp, 0x10
jmp 0x411aa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x10]
push 0x6a
push eax
call fcn.004643b0
mov edx, 0x487d18
push esi
mov ecx, dword [eax]
test ecx, ecx
cmovne edx, ecx
push edx
jmp 0x411af1
call fcn.00463410
int3