Function at 0x40e838
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x40e840
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov ebx, 0x415ae8
mov esi, 0x415b47
xor eax, eax
push ebp
push 0x40f2fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x415b14
mov edx, 0x40f310
call fcn.00403770
lea eax, [ebp - 0xc]
mov ecx, 0x40f344
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 0x40e8aa
sub eax, 1
jne 0x40f2df
push dword [ebp - 4]
push 0x40f350
push 0x40f364
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 0x40e910
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f350
push 0x40f378
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 0x40f350
push 0x40f378
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 0x40f350
push 0x40f38c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40e9a9
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f350
push 0x40f3a4
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 0x40f350
push 0x40f3a4
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
mov eax, 0x415b14
mov edx, 0x40f3b8
call fcn.00403770
push dword [ebp - 4]
push 0x40f350
push 0x40f420
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40eb56
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f420
lea eax, [ebp - 0x1c]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40ea5a
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f350
push 0x40f438
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f438
lea eax, [ebp - 0x20]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40eaae
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f350
push 0x40f44c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f44c
lea eax, [ebp - 0x24]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40eb02
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f350
push 0x40f460
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f460
lea eax, [ebp - 0x28]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40eb56
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
mov eax, 0x415b14
mov edx, 0x40f474
call fcn.00403770
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f4c4
push 0x40f364
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 [0x415adc]
call fcn.00403b7c
test eax, eax
jne 0x40ee8b
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40ebf2
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f4c4
push 0x40f378
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 0x40f4a8
push 0x40f4b4
push 0x40f4c4
push 0x40f378
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 0x40ec3c
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f4c4
push 0x40f38c
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40eca9
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f4c4
push 0x40f3a4
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 0x40f4a8
push 0x40f4b4
push 0x40f4c4
push 0x40f3a4
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 0x40ed17
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f4c4
push 0x40f3a4
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 0x40f4a8
push 0x40f4b4
push 0x40f420
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40ee8b
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f420
lea eax, [ebp - 0x40]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x40]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40ed80
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f438
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f438
lea eax, [ebp - 0x44]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x44]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40edd9
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f420
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f44c
lea eax, [ebp - 0x48]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x48]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40ee32
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f4a8
push 0x40f4b4
push 0x40f438
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
push 1
push 0x96
push 0x222e1
mov ecx, 0x40f460
lea eax, [ebp - 0x4c]
mov edx, dword [0x415adc]
call fcn.004038e0
mov eax, dword [ebp - 0x4c]
mov cl, 1
mov edx, dword [ebp - 8]
call fcn.004057bc
test al, al
je 0x40ee8b
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
mov eax, 0x415b14
mov edx, 0x40f4d8
call fcn.00403770
push dword [ebp - 4]
push 0x40f350
push 0x40f4c4
push 0x40f364
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 [0x415adc]
call fcn.00403b7c
test eax, eax
jne 0x40f000
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40ef1f
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f350
push 0x40f4c4
push 0x40f378
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 0x40f350
push 0x40f4c4
push 0x40f378
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 0x40ef64
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f350
push 0x40f4c4
push 0x40f38c
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 8]
call fcn.00405850
test al, al
jne 0x40efc7
push 1
push 0x96
push 0x222e1
push dword [ebp - 4]
push 0x40f350
push 0x40f4c4
push 0x40f3a4
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 0x40f350
push 0x40f4c4
push 0x40f3a4
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 0x40f518
push 0x40f544
push 0x40f550
push 0x40f560
push 0x40f590
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 0x40f04f
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f518
push 0x40f560
push 0x40f590
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 0x40f094
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f518
push 0x40f544
push 0x40f550
push 0x40f5a8
push 0x40f590
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 0x40f0e3
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f518
push 0x40f5a8
push 0x40f590
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 0x40f128
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f518
push 0x40f5d0
push 0x40f560
push 0x40f590
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 0x40f172
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f518
push 0x40f560
push 0x40f590
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 0x40f1b7
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f518
push 0x40f5d0
push 0x40f5a8
push 0x40f590
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 0x40f201
mov eax, dword [ebp - 8]
call fcn.004065c4
mov byte [esi], al
push dword [ebp - 4]
push 0x40f518
push 0x40f5a8
push 0x40f590
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
mov eax, 0x415b14
mov edx, 0x40f5e0
call fcn.00403770
push dword [ebp - 4]
push 0x40f344
push 0x40f550
push 0x40f560
push 0x40f590
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 0x40f344
push 0x40f550
push 0x40f5a8
push 0x40f590
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 0x40f301
lea eax, [ebp - 0x58]
mov edx, 0x16
call fcn.00403740
ret