Function at 0x404960
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462926
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x47f344]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x47f344]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
je 0x404bfb
mov edi, 0x469f6d
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404bfb
push 0x104
lea eax, [esp + 0x159]
push ebx
push eax
mov byte [esp + 0x160], dl
call fcn.00442eb0
add esp, 0xc
lea ecx, [esp + 0x154]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp eax, ebx
je 0x404bfb
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea edx, [esp + 0x18]
lea ecx, [esp + 0x154]
mov dword [esp + 0x270], ebx
call fcn.00404850
xor edi, edi
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x404bfb
mov ecx, dword [esp + 0x20]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, esi
jae 0x404bd7
push 0x104
lea edx, [esp + 0x51]
push 0
push edx
mov byte [esp + 0x58], 0
call fcn.00442eb0
add esp, 0xc
cmp edi, esi
jb 0x404a83
call fcn.0043e81d
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
cmp dword [esi + ebx + 0x18], 0x10
jb 0x404a94
mov ebx, dword [esi + ebx + 4]
jmp 0x404a98
lea ebx, [esi + ebx + 4]
push 0x104
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ab0
sub eax, edx
mov dword [esp + 0x14], eax
je 0x404b54
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], cl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404ae0
sub eax, edx
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.00406e20
push 1
push 0x46a294
lea eax, [esp + 0x38]
mov byte [esp + 0x278], 1
call fcn.00408d20
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x404b21
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x2c]
push edx
push eax
push ebx
call fcn.00456fc8
add esp, 0xc
test eax, eax
je 0x404b63
mov byte [esp + 0x270], 0
cmp dword [esp + 0x48], 0x10
jb 0x404b54
mov eax, dword [esp + 0x34]
push eax
call fcn.0043e445
add esp, 4
add edi, 1
add esi, 0x1c
mov dword [esp + 0x14], esi
jmp 0x404a30
lea esi, [esp + 0x18]
call fcn.004074a0
cmp dword [eax + 0x18], 0x10
jb 0x404b77
mov ecx, dword [eax + 4]
jmp 0x404b7a
lea ecx, [eax + 4]
mov edi, dword [esp + 0x28]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x404b80
mov ecx, dword [esp + 0x14]
lea eax, [ebx + ecx]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x404b97
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x404ba7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [esp + 0x48], 0x10
rep movsb byte es:[edi], byte [esi]
jb 0x404bd3
mov edx, dword [esp + 0x34]
push edx
call fcn.0043e445
add esp, 4
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x404bfb
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push eax
mov eax, ebx
call fcn.0040be10
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call fcn.0043e445
add esp, 4
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0043e436
mov esp, ebp
pop ebp
ret