Function at 0x402530
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4475a8
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x45cefc]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x24], eax
xor ebp, ebp
mov dword [esp + 0x140], ebp
mov ecx, dword [0x464e18]
mov eax, dword [0x471d4c]
mov edx, dword [eax - 8]
mov dword [esp + 0x20], ecx
mov esi, 1
mov ecx, esi
sub ecx, dword [eax - 4]
or edx, ecx
jge 0x4025b0
xor ecx, ecx
mov eax, 0x471d4c
call fcn.00401fc0
mov eax, dword [0x471d4c]
lea edx, [esp + 0x2c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, esi
test cl, cl
jne 0x4025b6
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, 3
mov dword [esp + 0x18], ebx
mov edx, esi
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x4025e7
add ebx, esi
cmp ebx, 0x1a
jl 0x4025d0
mov dword [esp + 0x18], ebx
jmp 0x4025f0
cmp ebx, 0xffffffff
mov dword [esp + 0x18], ebx
jne 0x402626
mov dword [esp + 0x140], 0xffffffff
mov eax, dword [esp + 0x148]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40261e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x402775
mov dword [0x464e2c], esi
mov dword [0x464e34], esi
mov esi, dword [esp + 0x148]
mov dword [0x464e28], ebp
mov dword [0x464e30], ebp
mov dword [0x464e38], ebp
mov dword [0x464e3c], ebp
mov dword [0x464e40], ebp
mov byte [0x464e20], 0
mov byte [0x464e22], 0
mov ecx, dword [esi - 0xc]
mov dword [0x474ae0], ecx
mov ecx, dword [esi - 8]
mov edi, dword [esi - 0xc]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x402695
xor ecx, ecx
lea eax, [esp + 0x148]
call fcn.00401fc0
mov esi, dword [esp + 0x148]
push edi
push esi
push 0x474ae4
call fcn.00423b90
mov eax, dword [esi - 0xc]
mov dl, byte [0x464e22]
mov byte [eax + 0x474ae4], 0
mov al, byte [0x464e20]
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28], dl
mov byte [esp + 0x1c], al
call fcn.00406f40
test eax, eax
jne 0x4026f9
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push 0x464e28
push ecx
push edx
push ebx
lea ecx, [esp + 0x3c]
mov ebx, 0x474ae0
call fcn.00402490
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov ebp, eax
mov edx, dword [0x471d3c]
mov al, bl
add al, 0x41
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], 0
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x402737
xor ecx, ecx
mov eax, 0x471d3c
call fcn.00401fc0
mov edx, dword [0x471d3c]
push edx
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
mov edx, dword [esp + 0x24]
add ebx, 1
lea eax, [esi - 0x10]
mov dword [edx], ebx
mov dword [esp + 0x140], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402773
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00423893
add esp, 0x130
ret