Function at 0x402440
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x446e28
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 [0x464e30]
mov eax, dword [0x471d64]
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 0x4024c0
xor ecx, ecx
mov eax, 0x471d64
call fcn.00401fd0
mov eax, dword [0x471d64]
lea edx, [esp + 0x2c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, esi
test cl, cl
jne 0x4024c6
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 0x4024f7
add ebx, esi
cmp ebx, 0x1a
jl 0x4024e0
mov dword [esp + 0x18], ebx
jmp 0x402500
cmp ebx, 0xffffffff
mov dword [esp + 0x18], ebx
jne 0x402536
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 0x40252e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x402685
mov dword [0x464e44], esi
mov dword [0x464e4c], esi
mov esi, dword [esp + 0x148]
mov dword [0x464e40], ebp
mov dword [0x464e48], ebp
mov dword [0x464e50], ebp
mov dword [0x464e54], ebp
mov dword [0x464e58], ebp
mov byte [0x464e38], 0
mov byte [0x464e3a], 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 0x4025a5
xor ecx, ecx
lea eax, [esp + 0x148]
call fcn.00401fd0
mov esi, dword [esp + 0x148]
push edi
push esi
push 0x474ae4
call fcn.004234f0
mov eax, dword [esi - 0xc]
mov dl, byte [0x464e3a]
mov byte [eax + 0x474ae4], 0
mov al, byte [0x464e38]
add esp, 0xc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x28], dl
mov byte [esp + 0x1c], al
call fcn.00406c90
test eax, eax
jne 0x402609
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push 0x464e40
push ecx
push edx
push ebx
lea ecx, [esp + 0x3c]
mov ebx, 0x474ae0
call fcn.004023a0
mov ebx, dword [esp + 0x28]
add esp, 0x10
mov ebp, eax
mov edx, dword [0x471d54]
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 0x402647
xor ecx, ecx
mov eax, 0x471d54
call fcn.00401fd0
mov edx, dword [0x471d54]
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 0x402683
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.004231f4
add esp, 0x130
ret