Function at 0x405ce0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x480
push ebx
push ebp
mov ebp, dword [esp + 0x48c]
push esi
lea eax, [esp + 0x10]
push edi
push eax
push 0x431d28
mov dword [esp + 0x1c], ebp
call fcn.00411b30
mov ebx, eax
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x405d1b
cmp eax, dword [0x42dd34]
jne 0x405f8d
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, ebp
call fcn.00412780
mov ecx, esi
mov edi, eax
sub ecx, ebp
mov dword [esp + 0x14], edi
push ecx
push ebp
call fcn.00412860
push ebx
push edi
push 0x431d28
mov dword [edi], eax
call fcn.00411c50
mov al, byte [esi - 1]
mov bl, 0x5c
add esp, 0x18
cmp al, bl
jne 0x405d61
mov byte [esi - 1], 0
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.00425333
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x405d95
call fcn.0041aafa
cmp dword [eax], 4
jne 0x405d95
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.00425333
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x405d76
mov al, byte [esi - 1]
test al, al
jne 0x405d9f
mov byte [esi - 1], bl
test edi, edi
jge 0x405db9
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax + 4], 0
pop ebx
add esp, 0x480
ret
mov ecx, dword [esp + 0x28]
push 1
push ebp
mov dword [esp + 0x54], ecx
call fcn.00419320
mov edx, dword [esp + 0x50]
mov edi, eax
lea eax, [esp + 0x54]
mov dword [esp + 0x58], edi
push eax
push 0x431cf8
mov dword [esp + 0x64], edx
call fcn.00411b30
mov ebx, eax
add esp, 0x10
mov esi, dword [ebx]
test esi, esi
je 0x405dfd
cmp esi, dword [0x42dd34]
jne 0x405f86
push 0x44
call fcn.00412780
mov ecx, dword [esp + 0x2c]
mov esi, eax
push edi
mov dword [esi], ecx
call fcn.00412800
mov dword [esi + 4], eax
mov edx, dword [esp + 0x50]
add esp, 8
mov dword [esi + 8], edx
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x90]
mov dword [esi + 0xc], eax
push 0x200
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x2a4]
push 0x200
push edx
push edi
mov byte [edi + 3], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x405ee6
mov edi, 0x42b080
lea eax, [esp + 0x90]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x405e92
test cl, cl
je 0x405e8e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x405e92
add eax, 2
add edi, 2
test cl, cl
jne 0x405e6e
xor eax, eax
jmp 0x405e97
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405ea4
mov dword [esi + 0x10], 1
jmp 0x405eed
mov edi, str.NTFS
lea eax, [esp + 0x90]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x405ed4
test cl, cl
je 0x405ed0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x405ed4
add eax, 2
add edi, 2
test cl, cl
jne 0x405eb0
xor eax, eax
jmp 0x405ed9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x405ee6
mov dword [esi + 0x10], 2
jmp 0x405eed
mov dword [esi + 0x10], 4
push ebx
push esi
push 0x431cf8
call fcn.00411c50
call fcn.0041aafa
push ebp
mov dword [eax], 0
call fcn.00417110
add esp, 0x10
mov dword [esi + 0x40], eax
test eax, eax
jne 0x405f2e
call fcn.0041aafa
cmp dword [eax], 4
jne 0x405f2e
push ebp
call fcn.00417110
add esp, 4
mov dword [esi + 0x40], eax
test eax, eax
je 0x405f14
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x405f4e
mov eax, dword [esp + 0x10]
mov dword [esi + 0x14], 0
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x480
ret
push 0x405fd0
push 0x406a90
push 0x405fa0
lea eax, [esi + 0x14]
push 0x6b
push eax
call fcn.00411a70
mov eax, dword [0x431d54]
add esp, 0x14
inc eax
cmp eax, 0xa
mov dword [0x431d54], eax
jne 0x405f86
push 0
push esi
call fcn.00406020
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x480
ret