Function at 0x40f410
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x40f418
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40fefc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov ecx, 0x40ff10
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, dword [ebp - 0xc]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
add eax, 0xfffffffe
sub eax, 3
jb 0x40f467
sub eax, 1
jne 0x40fee1
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff30
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.0040553c
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40f4d0
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff44
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x14]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff44
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff58
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40f572
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff70
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 0x18]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff70
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff84
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403964
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40f722
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ff84
lea eax, [ebp - 0x1c]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40f61d
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40ff9c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ff9c
lea eax, [ebp - 0x20]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40f674
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40ffb0
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ffb0
lea eax, [ebp - 0x24]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40f6cb
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40ffc4
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ffc4
lea eax, [ebp - 0x28]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40f722
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40fff4
push 0x40ff30
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00403964
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 8]
call fcn.0040553c
mov edx, dword [ebp - 8]
mov eax, dword [0x415adc]
call fcn.00403b8c
test eax, eax
jne 0x40fa60
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40f7af
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40fff4
push 0x40ff44
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00403964
mov eax, dword [ebp - 0x30]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40fff4
push 0x40ff44
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40f7ff
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40fff4
push 0x40ff58
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403964
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40f86c
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40fff4
push 0x40ff70
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00403964
mov eax, dword [ebp - 0x34]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40fff4
push 0x40ff70
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.00403964
mov edx, dword [ebp - 0x38]
mov cl, 1
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40f8e0
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40fff4
push 0x40ff70
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00403964
mov eax, dword [ebp - 0x3c]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40ff84
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40fa60
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ff84
lea eax, [ebp - 0x40]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x40]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40f94c
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40ff9c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ff9c
lea eax, [ebp - 0x44]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x44]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40f9a8
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40ff84
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ffb0
lea eax, [ebp - 0x48]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x48]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40fa04
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ffd8
push 0x40ffe4
push 0x40ff9c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov ecx, 0x40ffc4
lea eax, [ebp - 0x4c]
mov edx, dword [0x415adc]
call fcn.004038f0
mov eax, dword [ebp - 0x4c]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
test al, al
je 0x40fa60
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40fff4
push 0x40ff30
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 8]
call fcn.0040553c
mov edx, dword [ebp - 8]
mov eax, dword [0x415adc]
call fcn.00403b8c
test eax, eax
jne 0x40fbd5
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40fae8
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40ff1c
push 0x40fff4
push 0x40ff44
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x54]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40fff4
push 0x40ff44
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fb33
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff1c
push 0x40fff4
push 0x40ff58
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 8]
call fcn.00405a8c
test al, al
jne 0x40fb96
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40ff1c
push 0x40fff4
push 0x40ff70
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x58]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004059e0
push dword [ebp - 4]
push 0x40ff1c
push 0x40fff4
push 0x40ff70
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x410034
push 0x410040
push 0x410050
push 0x410080
lea eax, [ebp - 8]
mov edx, 6
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fc2a
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x410050
push 0x410080
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fc75
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x410034
push 0x410040
push 0x410098
push 0x410080
lea eax, [ebp - 8]
mov edx, 6
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fcca
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x410098
push 0x410080
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fd15
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x4100c0
push 0x410050
push 0x410080
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fd65
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x410050
push 0x410080
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fdb0
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x4100c0
push 0x410098
push 0x410080
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
je 0x40fe00
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x410008
push 0x410098
push 0x410080
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
test al, al
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff10
push 0x410040
push 0x410050
push 0x410080
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
push dword [ebp - 4]
push 0x40ff10
push 0x410040
push 0x410098
push 0x410080
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403964
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [0x415ae8]
call fcn.004059e0
mov eax, dword [ebp - 8]
call fcn.00406b68
mov byte [0x415b43], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ff03
lea eax, [ebp - 0x58]
mov edx, 0x16
call fcn.00403750
ret