Function at 0x40d81c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x40d824
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov ebx, 0x413ae8
mov esi, 0x413b43
xor eax, eax
push ebp
push 0x40e293
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov ecx, 0x40e2a8
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, dword [ebp - 0xc]
call fcn.00403a94
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
add eax, 0xfffffffe
sub eax, 3
jb 0x40d87f
sub eax, 1
jne 0x40e278
push dword [ebp - 4]
push 0x40e2b4
push 0x40e2c8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.004053f4
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40d8e5
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40e2b4
push 0x40e2dc
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x14]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e2dc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e2f0
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40d97e
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40e2b4
push 0x40e308
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 0x18]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e308
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e31c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40db1c
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e31c
lea eax, [ebp - 0x1c]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40da20
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e334
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e334
lea eax, [ebp - 0x20]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40da74
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e348
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e348
lea eax, [ebp - 0x24]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40dac8
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e35c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e35c
lea eax, [ebp - 0x28]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40db1c
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e38c
push 0x40e2c8
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00403954
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 8]
call fcn.004053f4
mov edx, dword [ebp - 8]
mov eax, dword [0x413adc]
call fcn.00403b7c
test eax, eax
jne 0x40de42
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40dba9
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e38c
push 0x40e2dc
lea eax, [ebp - 0x30]
mov edx, 5
call fcn.00403954
mov eax, dword [ebp - 0x30]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e38c
push 0x40e2dc
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40dbf3
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e38c
push 0x40e2f0
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40dc60
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e38c
push 0x40e308
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00403954
mov eax, dword [ebp - 0x34]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e38c
push 0x40e308
lea eax, [ebp - 0x38]
mov edx, 5
call fcn.00403954
mov edx, dword [ebp - 0x38]
mov cl, 1
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40dcce
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e38c
push 0x40e308
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00403954
mov eax, dword [ebp - 0x3c]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e31c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40de42
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e31c
lea eax, [ebp - 0x40]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x40]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40dd37
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e334
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e334
lea eax, [ebp - 0x44]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x44]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40dd90
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e31c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e348
lea eax, [ebp - 0x48]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x48]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40dde9
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e370
push 0x40e37c
push 0x40e334
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40e35c
lea eax, [ebp - 0x4c]
mov edx, dword [0x413adc]
call fcn.004038e0
mov eax, dword [ebp - 0x4c]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40de42
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e38c
push 0x40e2c8
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 8]
call fcn.004053f4
mov edx, dword [ebp - 8]
mov eax, dword [0x413adc]
call fcn.00403b7c
test eax, eax
jne 0x40dfa8
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40dec7
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40e2b4
push 0x40e38c
push 0x40e2dc
lea eax, [ebp - 0x54]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x54]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e38c
push 0x40e2dc
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40df0c
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2b4
push 0x40e38c
push 0x40e2f0
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40df6f
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40e2b4
push 0x40e38c
push 0x40e308
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x58]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
push dword [ebp - 4]
push 0x40e2b4
push 0x40e38c
push 0x40e308
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e3cc
push 0x40e3d8
push 0x40e3e8
push 0x40e418
lea eax, [ebp - 8]
mov edx, 6
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40dff7
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e3e8
push 0x40e418
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40e03c
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e3cc
push 0x40e3d8
push 0x40e430
push 0x40e418
lea eax, [ebp - 8]
mov edx, 6
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40e08b
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e430
push 0x40e418
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40e0d0
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e458
push 0x40e3e8
push 0x40e418
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40e11a
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e3e8
push 0x40e418
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40e15f
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e458
push 0x40e430
push 0x40e418
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
je 0x40e1a9
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e3a0
push 0x40e430
push 0x40e418
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
test al, al
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2a8
push 0x40e3d8
push 0x40e3e8
push 0x40e418
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40e2a8
push 0x40e3d8
push 0x40e430
push 0x40e418
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebx]
call fcn.004057bc
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e29a
lea eax, [ebp - 0x58]
mov edx, 0x16
call fcn.00403740
ret